dp3.scripts.datapoint_log_converter ¶
Converts legacy CSV DataPoint log format to JSON
LegacyDataPointLoader ¶
Loader of datapoint files as written by DP3 API receiver.
Create a datapoint loader.
attr_config_dirname: Directory with attribute configuration (same as for DP3)
Source code in dp3/scripts/datapoint_log_converter.py
read_dp_file ¶
Read a file with ADiCT/DP3 datapoints into pandas DataFrame.
Values of attributes in datapoints are validated and converted according to the attribute configuration passed to LegacyDataPointLoader constructor.
Source code in dp3/scripts/datapoint_log_converter.py
get_converter ¶
Return a function converting a string to given data type.
Source code in dp3/scripts/datapoint_log_converter.py
get_out_path ¶
Return output file path based on the input file. Parses the date from input filename, fits date into prepared pattern: "dp_log_{date}.json".