Skip to content

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-m committed Mar 15, 2022
1 parent 81d19d0 commit 0ad109f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oommfc/drivers/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def drive(self, system, /, dirname='.', append=True, fixed_subregions=None,
# test_sample-Oxs_TimeDriver-Magnetization-01-0000008.omf
omffiles = glob.iglob(f'{system.name}*.omf')
lastomffile = sorted(omffiles)[-1]
# pass Field.array instead of Field for better performance
system.m.value = df.Field.fromfile(lastomffile).array

# Update system's datatable.
Expand Down

0 comments on commit 0ad109f

Please sign in to comment.