Skip to content

Commit

Permalink
Correct IJob.save()
Browse files Browse the repository at this point in the history
  • Loading branch information
MBartkowiakSTFC committed Jan 12, 2024
1 parent a954223 commit 843b300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MDANSE/Src/MDANSE/Framework/Jobs/IJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def save(cls, jobFile, parameters=None):
f.write("\n")

f.write('if __name__ == "__main__":\n')
f.write(" %s = IJob.create(%r)\n" % (cls._type, cls.__name__))
f.write(" %s.run(parameters,status=True)" % (cls._type))
f.write(" instance = IJob.create(%r)\n" % (cls.__name__))
f.write(" instance.run(parameters,status=True)")

f.close()

Expand Down

0 comments on commit 843b300

Please sign in to comment.