dispel.providers.sensorlog.io module#

Functionality to read files from SensorLog.

dispel.providers.sensorlog.io.get_device(data)[source]#

Get device information from the SensorLog reading.

Parameters:

data (DataFrame | dict) – The data frame obtained with read_sensor_log_as_data_frame()

Returns:

The device information present in the SensorLog reading

Return type:

Device

Raises:

ValueError – If a wrong identifier definition in data set is given.

dispel.providers.sensorlog.io.get_evaluation(data)[source]#

Get the evaluation for the SensorLog reading.

Parameters:

data (DataFrame | dict) – The data frame obtained with read_sensor_log_as_data_frame()

Returns:

The evaluation information

Return type:

Evaluation

dispel.providers.sensorlog.io.get_sensor_log_reading(data)[source]#

Get the reading representation of a SensorLog data frame.

Parameters:

data (DataFrame | dict) – The data frame obtained with read_sensor_log_as_data_frame()

Returns:

The Reading representation of the SensorLog json file.

Return type:

Reading

dispel.providers.sensorlog.io.read_sensor_log(path)[source]#

Read data from SensorLog JSON file.

Parameters:

path (str) – The path to the JSON file containing the data to be read.

Returns:

The Reading representation of the SensorLog json file.

Return type:

Reading

dispel.providers.sensorlog.io.read_sensor_log_as_data_frame(path)[source]#

Read a SensorLog json file into a pandas data frame.

Parameters:

path (str) – The path to the SensorLog json file

Returns:

The data frame representation of the SensorLog json file.

Return type:

pandas.DataFrame