add option for prefix_chars in silcam and holo load classes#385
Conversation
|
How about reviving my elegant and robust suggested regex from yonder, which will match the standard date and time format, irrespective of the number of characters in the prefix? |
so, instead of parsing a single integer in the config settings, you suggest parsing a regex that describes the filename format? maybe like this: |
|
Since the to_datetime function cannot accept wildcards, this means that any prefix must have known and constant characters if we were to use the format string as the only input. The approach of using the prefix_chars integer allows for any content of those prefix characters (so they could be something changing within one dataset as long as their length is constant). We can perhaps do both of these, by having optional inputs for prefix_chars and a datetime_format, where datetime format defaults to 'None' (which should keep the current default automatic parsing) |
add option for prefix_chars in silcam and holo load classes. This allows load functions to have an optional number of characters to exclude in filename prefixes.
Example toml pipeline step with optional prefix_chars defined:
prefix_chars defaults to 1 if not defined (to match the standard 'D' at the start of "normal" silcam and LISST-Holo filenames.