2.6.1.5. pycsamt.emtf.validation#
Validation helpers for the format-neutral EMTF scientific model.
Functions
|
Normalize channel names while preserving order. |
|
Return a validated positive 1-D period vector. |
|
Normalize a TF payload to |
- pycsamt.emtf.validation.normalize_channels(channels)[source]
Normalize channel names while preserving order.
- pycsamt.emtf.validation.normalize_periods(periods, *, n_periods=None)[source]
Return a validated positive 1-D period vector.
- pycsamt.emtf.validation.normalize_tf_data(data, *, n_output, n_input)[source]
Normalize a TF payload to
(n_period, n_output, n_input).Empty channel lists represent scalar 1x1 products. A 1-D array is therefore accepted only for a scalar response and is promoted to
(n_period, 1, 1). A 2-D array matching one output/input matrix is interpreted as a single period and promoted to 3-D.