organize⚓︎
Descriptive description.
ConfigNormalizer
⚓︎
Utility class for normalizing and type-converting configuration dictionaries for PIPT/POPT workflows.
This class provides static methods to process and normalize configuration sections such as 'datatype', 'truedataindex', 'reportpoint', and 'assimindex'.
normalize_assimindex(assimindex)
⚓︎
Normalize the 'assimindex' field: read from CSV if needed, ensure list of lists of ints.
normalize_config(keys_pr, keys_fwd, keys_en=None)
⚓︎
Normalize all relevant fields in the config dictionaries and return new dicts.
normalize_datatype(datatype)
⚓︎
Normalize the 'datatype' field: read from CSV if needed, ensure list of strings.
normalize_reportpoint(reportpoint)
⚓︎
Normalize the 'reportpoint' field: handle CSV, dict (date_range), or pass through.
normalize_truedataindex(truedataindex)
⚓︎
Normalize the 'truedataindex' field: read from CSV if needed, ensure list of ints.
report_point_file_reader(filepath)
⚓︎
Read a file containing report points and return parsed values.
Supported file types: - .csv : Each cell is parsed as int or datetime - .txt : Each line is parsed as int or datetime - .yaml: Each entry is parsed as int or datetime
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to the input file. |
required |
Returns:
| Type | Description |
|---|---|
list
|
List of parsed values (int or datetime-like objects). |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If the file does not exist. |
ValueError
|
If the file type is unsupported or parsing fails. |