Skip to content

Commit 31ed493

Browse files
Merge pull request #142 from iiasa/develop
✔️ calibration .sh execute permission on linux
2 parents 2c70f2c + 2609c38 commit 31ed493

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Toolkit/Calibration/scripts/calibration_single.py

+2
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def RunModel(Individual):
217217
if use_multiprocessing == 0:
218218
template_bat_new = template_bat_new.split()[0] + " " + template_bat_new.split()[1] + " " + template_bat_new.split()[2] + " -l"
219219
f = open(runfile, "w")
220+
os.chmod(runfile, 0o744)
220221
f.write(template_bat_new)
221222
f.close()
222223

@@ -539,6 +540,7 @@ def wrappper(*args, **kargs):
539540
else:
540541
runfile = runfile + ".sh"
541542
f = open(runfile, "w")
543+
os.chmod(runfile, 0o744)
542544
f.write(template_bat_new)
543545
f.close()
544546

0 commit comments

Comments
 (0)