openMWR.config#
Shared configuration checks, independent of recipes and workflow execution.
Functions
|
Seed initialization and training; 'random' leaves the generators alone. |
|
|
|
Validate the cloud choices shared by profile recipes and Python calls. |
|
|
|
Validate an inclusive day-of-month range, also used by Python callers. |
|
Validate both site settings and standalone HATPRO file reads. |
|
|
|
|
|
Validate variable-specific rules containing UTC dates or exact intervals. |
|
|
|
Require correctly ordered fixed rates and independent search spaces. |
|
|
|
|
|
Select an ordered, nonempty subset of the profile retrieval outputs. |
|
|
|
|
|
An explicit random run or a seed shared by Python, NumPy and PyTorch. |
|
Require distinct monthly test/validation ranges, leaving training days. |
|
|
|
Check optional ISO date bounds and an inclusive day-of-month range. |
|
Names of the noise parameters used by the model's active inputs. |
|
Load a named project grid or validate an explicit numeric list. |
|
|
|
Resolve numeric TOML keys, rejecting aliases for the same coordinate. |
|
Validate a parameter and lower a search to the existing workflow API. |
|
|
|
Intersect date and monthly selections, including the whole end day. |
|
Training settings used by the selected fitting method. |
|
Reject explicit parameters that the chosen fitting method ignores. |
|
Check fixed training values, also used for resolved optimization trials. |
- openMWR.config.check_output_vars(values)[source]#
Select an ordered, nonempty subset of the profile retrieval outputs.
- openMWR.config.training_parameters(is_mlr, loss_fn=None)[source]#
Training settings used by the selected fitting method.
- openMWR.config.check_seed(value, label='seed')[source]#
An explicit random run or a seed shared by Python, NumPy and PyTorch.
- openMWR.config.apply_seed(seed)[source]#
Seed initialization and training; ‘random’ leaves the generators alone.
- openMWR.config.check_days(days, label='days_of_month')[source]#
Validate an inclusive day-of-month range, also used by Python callers.
- openMWR.config.check_split_days(test_days_of_month, validation_days_of_month)[source]#
Require distinct monthly test/validation ranges, leaving training days.
- openMWR.config.check_time_selection(settings, label='selection')[source]#
Check optional ISO date bounds and an inclusive day-of-month range.
- openMWR.config.select_time(data, *, start_date=None, end_date=None, days_of_month=None)[source]#
Intersect date and monthly selections, including the whole end day.
- openMWR.config.check_cloud(cloud)[source]#
Validate the cloud choices shared by profile recipes and Python calls.
- openMWR.config.check_hatpro_format(format, time_offset_hours=None)[source]#
Validate both site settings and standalone HATPRO file reads.
- openMWR.config.check_invalid_measurements(rules)[source]#
Validate variable-specific rules containing UTC dates or exact intervals.
- openMWR.config.input_noise_parameters(model)[source]#
Names of the noise parameters used by the model’s active inputs.
- openMWR.config.load_grid(project_dir, kind, values, *, label=None)[source]#
Load a named project grid or validate an explicit numeric list.
Names come only from the project’s grids.toml, in heights (metres), frequencies (GHz), or angles (degrees). Reads observe edits on later calls.
- openMWR.config.resolve_coordinate_table(table, label)[source]#
Resolve numeric TOML keys, rejecting aliases for the same coordinate.
- openMWR.config.check_learning_rates(settings)[source]#
Require correctly ordered fixed rates and independent search spaces.
- openMWR.config.validate_training_settings(settings)[source]#
Check fixed training values, also used for resolved optimization trials.
- openMWR.config.validate_parameter_usage(is_mlr, settings, *, complete=False)[source]#
Reject explicit parameters that the chosen fitting method ignores.
- openMWR.config.resolve_parameter(value, key, label, workflow=None)[source]#
Validate a parameter and lower a search to the existing workflow API.
References