range_driver.data_prep.metadata module

Functions to handle different kinds of metadata, e.g. details about receiver and tag deployment, etc.

TODO: Integrate with resonate metadata processing

range_driver.data_prep.metadata.clean_vendor_tag_specs(tag_specs_df)[source]

Process metadata extracted via row copy & paste from vendor CSV files

range_driver.data_prep.metadata.get_device_from_catalog(catalog_str)[source]

Return 2nd last part of ‘-‘ separated string as an int. Works on str and DataFrames of strings

range_driver.data_prep.metadata.get_device_id(device_str)[source]

Return last part of ‘-‘-separated string as int. Works on str and DataFrames of strings.

range_driver.data_prep.metadata.otn_transmitter_patch_1(mdb)[source]

Applies a patch specific to the OTN Mahone Bay range test

Parameters

mdb (sklearn.utils.Bunch) – Metadata for the OTN Mahone Bay range test.

Returns

None. Applies the patch to the Transmitter information within the Metadata

range_driver.data_prep.metadata.read_otn_metadata(metadata_file, sheet_skips={'Data Dictionary': 4, 'Deployment': 0})[source]
range_driver.data_prep.metadata.rt_dist(grdf, metabunch)[source]
range_driver.data_prep.metadata.rt_info(grdf, metabunch)[source]
range_driver.data_prep.metadata.set_all_values(df, columns, aggfun='max')[source]

Set all values of DataFrame df in given columns to aggregated value.