Commit 5feb3c11 authored by Ahmad Reza's avatar Ahmad Reza
Browse files

Some name changes in the config.

parent e5d60a98
......@@ -11,7 +11,7 @@ visualization = 1
## 1 = Call of particles in randmom order
## 0 = Call of particles in added order in scenario
random_order = 1
particle_random_order = True
## Viewing window size in pixels
window_size_x = 600
......@@ -23,7 +23,7 @@ window_size_y = 800
border = False
## Swarm-World world size in points
## Works only with border flag set on 1
## Works only with border flag set on True
size_x = 2000.0
size_y = 2000.0
......
......@@ -9,7 +9,7 @@ class ConfigData:
config.read("config.ini")
self.seed_value = config.getint("Simulator", "seedvalue")
self.max_round = config.getint("Simulator", "max_round")
self.random_order = config.getboolean("Simulator", "random_order")
self.particle_random_order = config.getboolean("Simulator", "particle_random_order")
self.visualization = config.getint("Simulator", "visualization")
self.window_size_x = config.getint("Simulator", "window_size_x")
self.window_size_y = config.getint("Simulator", "window_size_y")
......
......@@ -64,7 +64,7 @@ class World:
mod = importlib.import_module('scenario.' + self.config_data.scenario)
mod.scenario(self)
if self.config_data.random_order:
if self.config_data.particle_random_order:
random.shuffle(self.particles)
if config_data.visualization:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment