helper module
Define helper funcs for MultipactorTest, PowerStep.
- parse_header_value(commented_lines, key)[source]
Extract a scalar value from the
CSVcommented header.- Parameters:
- Return type:
- Returns:
The parsed float value, or
np.nanif the key is absent or the value cannot be converted (including"NaN"entries).
- take_maximum(raw_data, warn_nan=False)[source]
Take the maximum of the array.
This is the default behavior for LabViewer.
- take_median(raw_data, first_index=0, last_index=-1)[source]
Take median from
first_indextolast_index.
- POWERSTEP_FILE_RECOGNIZER_T
Functions detecting if the file as argument corresponds to a
PowerStepfile.