diff --git a/spim_registration/timelapse/timelaps_utils.py b/spim_registration/timelapse/timelaps_utils.py index 353bd094593d54558975149ef5867aaf56053a77..6a2bebe5395e172fe6c6cb394da4e3efff4ee3e1 100644 --- a/spim_registration/timelapse/timelaps_utils.py +++ b/spim_registration/timelapse/timelaps_utils.py @@ -25,4 +25,9 @@ def produce_string(_fstring, *args, **kwargs): return _fstring.format(**contents) 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