utils.py
get_param_names(func)
¶
sanitize_filename(filename)
¶
Sanitize filename to remove special characters
get_most_recent_file(path, ext='')
¶
Get the most recent file of a given extension in a directory
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
Path to the directory containing the files |
required |
ext
|
str
|
File extension to filter by (e.g., ".h5", ".csv"). Default is "", which returns the most recent file regardless of extension. |
''
|