Skip to content

Commit

Permalink
info json for schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
kzqureshi committed Nov 5, 2024
1 parent f44c6df commit 16556dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions micromagneticmodel/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def schedule(
"""
# This method is implemented in the derived driver class. It raises
# exception if any of the arguments are not valid.
drive_kwargs = kwargs.copy()
self.schedule_kwargs_setup(kwargs)
self._check_system(system)
workingdir = self._setup_working_directory(
Expand All @@ -260,6 +261,8 @@ def schedule(
if pathlib.Path(header).exists():
header = pathlib.Path(header).absolute()

start_time = datetime.datetime.now()

with uu.changedir(workingdir):
self._write_input_files(
system=system,
Expand All @@ -269,6 +272,7 @@ def schedule(
self._write_schedule_script(
system=system, header=header, script_name=script_name, runner=runner
)
self._write_info_json(system, start_time, **drive_kwargs)

stdout = stderr = sp.PIPE
if sys.platform == "win32":
Expand Down

0 comments on commit 16556dc

Please sign in to comment.