Skip to content

Commit 1be72aa

Browse files
Merge pull request #137 from computationalmodelling/nebm-filesaving-tweak
Tweak file saving of NEBM to be sequential alphabetically on filesyst…
2 parents ce2f2a3 + 404ac84 commit 1be72aa

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)