Skip to content

Commit 38a5f47

Browse files
committed
More py3 work
1 parent e805bc9 commit 38a5f47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CElegans/pythonScripts/c302/c302_FW.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def setup(parameter_set,
2020
verbose=True,
2121
config_param_overrides={}):
2222

23-
exec ('from parameters_%s import ParameterisedModel' % parameter_set)
23+
exec ('from parameters_%s import ParameterisedModel' % parameter_set, globals())
2424
params = ParameterisedModel()
2525

2626
params.set_bioparameter("unphysiological_offset_current", "0pA", "Testing TapWithdrawal", "0")

CElegans/pythonScripts/c302/runAndPlot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def run_c302(config,
3535

3636
print("********************\n\n Going to generate c302_%s_%s and run for %sms on %s\n\n********************"%(parameter_set,config,duration, simulator))
3737
if config_package:
38-
exec ('from %s.c302_%s import setup' % (config_package, config))
38+
exec ('from %s.c302_%s import setup' % (config_package, config), globals())
3939
else:
40-
exec ('from c302_%s import setup' % config)
40+
exec ('from c302_%s import setup' % config, globals())
4141

4242
try:
4343
os.makedirs(target_directory)

0 commit comments

Comments
 (0)