Skip to content

Commit 225b77e

Browse files
committed
Fix Python parameter dict
1 parent fb2c2fb commit 225b77e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

python/__init__.py.in

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def ReadConfigFile(fileName: str):
5151
Parameters
5252
----------
5353
fileName: str
54-
Name of the config file.
54+
Name of the config file.
5555

5656
Returns
5757
-------
@@ -71,8 +71,10 @@ def ReadConfigFile(fileName: str):
7171
par_value = line[line.find('=')+1:]
7272

7373
try:
74-
val= float(par_value)
74+
val = float(par_value)
7575
except:
7676
val = par_value
77-
par_dict[par_name] = val
78-
return par_dict
77+
78+
par_dict[par_name] = val
79+
80+
return par_dict

0 commit comments

Comments
 (0)