openMWR.config#

Shared configuration checks, independent of recipes and workflow execution.

Functions

apply_seed(seed)

Seed initialization and training; 'random' leaves the generators alone.

check_analysis(settings)

check_cloud(cloud)

Validate the cloud choices shared by profile recipes and Python calls.

check_coordinates(values, label[, minimum])

check_days(days[, label])

Validate an inclusive day-of-month range, also used by Python callers.

check_hatpro_format(format[, time_offset_hours])

Validate both site settings and standalone HATPRO file reads.

check_height_range(value[, label, allow_model])

check_infrared(settings)

check_invalid_measurements(rules)

Validate variable-specific rules containing UTC dates or exact intervals.

check_keys(table, allowed, section)

check_learning_rates(settings)

Require correctly ordered fixed rates and independent search spaces.

check_name(value, label)

check_number(value, label[, minimum, integer])

check_output_vars(values)

Select an ordered, nonempty subset of the profile retrieval outputs.

check_profile_quality(quality)

check_score_weights(weights, variables)

check_seed(value[, label])

An explicit random run or a seed shared by Python, NumPy and PyTorch.

check_split_days(test_days_of_month, ...)

Require distinct monthly test/validation ranges, leaving training days.

check_strings(values, label)

check_time_selection(settings[, label])

Check optional ISO date bounds and an inclusive day-of-month range.

input_noise_parameters(model)

Names of the noise parameters used by the model's active inputs.

load_grid(project_dir, kind, values, *[, label])

Load a named project grid or validate an explicit numeric list.

require_keys(table, required, section)

resolve_coordinate_table(table, label)

Resolve numeric TOML keys, rejecting aliases for the same coordinate.

resolve_parameter(value, key, label[, workflow])

Validate a parameter and lower a search to the existing workflow API.

select_height_range(data, height_range)

select_time(data, *[, start_date, end_date, ...])

Intersect date and monthly selections, including the whole end day.

training_parameters(is_mlr[, loss_fn])

Training settings used by the selected fitting method.

validate_parameter_usage(is_mlr, settings, *)

Reject explicit parameters that the chosen fitting method ignores.

validate_training_settings(settings)

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_score_weights(weights, variables)[source]#
openMWR.config.check_cloud(cloud)[source]#

Validate the cloud choices shared by profile recipes and Python calls.

openMWR.config.check_profile_quality(quality)[source]#
openMWR.config.check_height_range(value, label='height_range', *, allow_model=False)[source]#
openMWR.config.select_height_range(data, height_range)[source]#
openMWR.config.check_hatpro_format(format, time_offset_hours=None)[source]#

Validate both site settings and standalone HATPRO file reads.

openMWR.config.check_analysis(settings)[source]#
openMWR.config.check_invalid_measurements(rules)[source]#

Validate variable-specific rules containing UTC dates or exact intervals.

openMWR.config.check_infrared(settings)[source]#
openMWR.config.input_noise_parameters(model)[source]#

Names of the noise parameters used by the model’s active inputs.

openMWR.config.require_keys(table, required, section)[source]#
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.check_keys(table, allowed, section)[source]#
openMWR.config.check_number(value, label, minimum=None, integer=False)[source]#
openMWR.config.check_name(value, label)[source]#
openMWR.config.check_strings(values, label)[source]#
openMWR.config.check_coordinates(values, label, minimum=0)[source]#
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