Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ahmad Reza Cheraghi
swarm-sim
Commits
59e96ab7
Commit
59e96ab7
authored
Jul 23, 2019
by
Ahmad Reza Cheraghi
Browse files
changed x,y, and border to float
parent
9eee858b
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.py
View file @
59e96ab7
...
...
@@ -26,11 +26,11 @@ class ConfigData():
self
.
solution
=
config
.
get
(
"File"
,
"solution"
)
except
(
configparser
.
NoOptionError
)
as
noe
:
self
.
solution
=
"solution.py"
self
.
size_x
=
config
.
get
in
t
(
"Simulator"
,
"size_x"
)
self
.
size_y
=
config
.
get
in
t
(
"Simulator"
,
"size_y"
)
self
.
size_x
=
config
.
get
floa
t
(
"Simulator"
,
"size_x"
)
self
.
size_y
=
config
.
get
floa
t
(
"Simulator"
,
"size_y"
)
self
.
window_size_x
=
config
.
getint
(
"Simulator"
,
"window_size_x"
)
self
.
window_size_y
=
config
.
getint
(
"Simulator"
,
"window_size_y"
)
self
.
border
=
config
.
get
in
t
(
"Simulator"
,
"border"
)
self
.
border
=
config
.
get
floa
t
(
"Simulator"
,
"border"
)
self
.
max_particles
=
config
.
getint
(
"Simulator"
,
"max_particles"
)
self
.
mm_limitation
=
config
.
getboolean
(
"Matter"
,
"mm_limitation"
)
self
.
particle_mm_size
=
config
.
getint
(
"Matter"
,
"particle_mm_size"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment