Skip to content
Snippets Groups Projects
Commit d0c0b387 authored by Peter Steinbach's avatar Peter Steinbach
Browse files

limited padding to start at 2

parent ddf62160
No related branches found
No related tags found
No related merge requests found
...@@ -25,4 +25,9 @@ def produce_string(_fstring, *args, **kwargs): ...@@ -25,4 +25,9 @@ def produce_string(_fstring, *args, **kwargs):
return _fstring.format(**contents) return _fstring.format(**contents)
def padding_of_file_id(_n_timepoints): def padding_of_file_id(_n_timepoints):
return math.ceil(math.log10(_n_timepoints)) value = math.ceil(math.log10(_n_timepoints))
if value < 2:
return 2
else:
return value
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment