Skip to content

Commit

Permalink
Fix glob m0
Browse files Browse the repository at this point in the history
Closes: ubermag/micromagneticmodel#61

Co-authored-by: Martin Lang <martin.lang@mpsd.mpg.de>
  • Loading branch information
samjrholt and lang-m authored Feb 24, 2025
1 parent 513e419 commit e92f78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oommfc/drivers/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _schedule_commands(self, system, runner):
def _read_data(self, system):
# Update system's magnetisation. An example .omf filename:
# test_sample-Oxs_TimeDriver-Magnetization-01-0000008.omf
omffiles = pathlib.Path(".").glob(f"{system.name}*.omf")
omffiles = pathlib.Path(".").glob(f"{system.name}-*.omf")
lastomffile = sorted(omffiles)[-1]
# pass Field.array instead of Field to system.m.value
# - to avoid overriding component labels
Expand Down

0 comments on commit e92f78e

Please sign in to comment.