sensortoolkit.ingest._sensor_import.ingest_wrapper
- ingest_wrapper(cwd, sensor_name, serial, data_path, ingest_method)[source]
Wrapper for ingestion modules. Selects the ingestion module to convert sensor-specific data formatting to SDFS format for analysis.
- Parameters
cwd (str) – full path to recorded sensor dataset including the file name.
sensor_name (str) – The make and model of the sensor.
serial (dict) – The serial identifier unique to each sensor unit
data_path (str) – full path to sensor data top directory (contains subdirs for processed and raw data, and the setup.json if configured)
ingest_method (function object) – If not None,
ingest_wrapper()
will attempt to import sensor data using a passed custom written ingestion module instead of thestandard_ingest()
method.
- Returns
Sensor dataframe imported and processed via the appropriate ingestion module.
- Return type
pandas DataFrame object