-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Format specifiers are not taken into account when creating names:
import filefinder
f = filefinder.FileFinder(
path_pattern="",
file_pattern="domain_{domain:02d}.nc",
)
domain = 1
print(f.create_full_name(domain=domain))
print(f"domain_{domain:02d}.nc")domain_1.nc
domain_01.nc
Because the _pattern_no_fmt_spec is used:
In this case it would be good if the fmt spec was used. But does that hold in general?
Metadata
Metadata
Assignees
Labels
No labels