Merge branch 'feature/909-define-basic-trait-type-using-dataclasses' into feature/911-new-traits-based-integrator

This commit is contained in:
Ondrej Samohel 2025-02-13 11:56:58 +01:00
commit 184753a304
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -384,7 +384,13 @@ class Sequence(TraitBase):
"""
src_collection = Sequence._get_collection(file_locations)
return len(str(max(src_collection.indexes)))
padding = src_collection.padding
# sometimes Clique doens't get the padding right so
# we need to calculate it manually
if padding == 0:
padding = len(str(max(src_collection.indexes)))
return padding
@staticmethod
def get_frame_list(