pcg_ppg_analysis

Submodules

data

Module handling loading and processing of data.

pcg_ppg_analysis.data.extract_pcg_ppg_slots(pcg, ppg, sampling_frequency, slot_size, overlap)
pcg_ppg_analysis.data.load_pcg(path)

Load PCG data from file.

This function loads PCG data from a file containing a single column, with scientific notation for data formatting

Parameters

path (str) – path to the file containing PCG data

Returns

numpy.ndarray with PCG data.

Return type

data

pcg_ppg_analysis.data.load_ppg(path)

Load PPG data from file.

This function loads PCG data from a file containing a single column, with scientific notation for data formatting

Parameters

path (str) – path to the file containing PPG data

Returns

numpy.ndarray array with PPG data.

Return type

data

pcg_ppg_analysis.data.load_recording_info(path)

Load recording information from the file in the given path.

This function processes the file in the provided path and extract the following information:

-Data (datetime.datetime Object): year, month, and day of the recording

-Orario reg Gima (datetime.datetime Object): year, month, day, hour, and minute of the Gima recording

-Orario reg Soundi (:class:datetime.datetime`.__): year, month, day, hour and minute of the Soundi recording

-Età (int) : subject age

-Peso (float) : subject weight

-Altezza (float) : subject height

Parameters

path (str) – path to the file containing recording information.

Returns

dictionary with recording information fields.

Return type

recording_info_dict (dict)

Raises

ValueError – if path not found