Skip to content

Commit 404ac84

Browse files
committed
Tweak file saving of NEBM to be sequential alphabetically on filesystems by prefixing with leading zeros
1 parent 2300181 commit 404ac84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fidimag/common/chain_method_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def save_VTKs(self, coordinates_function=None):
348348
349349
"""
350350
# Create the directory
351-
directory = 'vtks/%s_%d' % (self.name, self.iterations)
351+
directory = "vtks/{}_{:05d}".format(self.name, self.iterations)
352352
self.VTK.directory = directory
353353

354354
self.band.shape = (self.n_images, -1)

0 commit comments

Comments
 (0)