Skip to content

Commit

Permalink
Merge pull request #2 from dsvatunek/fix-format-string
Browse files Browse the repository at this point in the history
Fix format string for output file names
  • Loading branch information
rlaplaza authored Jul 16, 2024
2 parents 2767ba4 + 126de69 commit 8020927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion navicat_marc/marc.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def run_marc():
# Output name generation
outnames = [molecule.name for molecule in molecules]
if None in outnames:
format_string = f"0{min(np.floor(l / 10), 1) + 1}"
format_string = f"0{max(int(np.floor(np.log10(l)) + 1), 2)}d"
outnames = [f"{basename}_{idx:{format_string}}" for idx in range(l)]

# Plot tsne
Expand Down

0 comments on commit 8020927

Please sign in to comment.