Commit 9d673184 authored by David Schäfer's avatar David Schäfer
Browse files

remains from initial import attempt

parent 8b7f9e2b
......@@ -113,15 +113,23 @@ def uploadDataNew(logger, api, device):
device.dmp_logger_id, start_date=start_date, end_date=end_date, cache=False
)
# data_old = pd.DataFrame()
# flags_old = pd.DataFrame()
data_out = maskDuplicates(data_new, data_old)
flags_out = maskDuplicates(flags_new, flags_old)
flags_out = dropLevel1(flags_out, data_out)
# flags_out = flags_new
# Level2A fehlend: Box09, Box17, Box19
logger.debug(f"uploading: {data_out.count().sum(axis=None)} L1 values")
logger.debug(f"uploading: {flags_out.count().sum(axis=None)} L2 values")
logger.info(f"uploading: {data_out.count().sum(axis=None)} L1 values")
logger.info(f"uploading: {flags_out.count().sum(axis=None)} L2 values")
# api.postLevel1Data(device.dmp_logger_id, data_out, label=False, strip_dst=True)
# api.postLevel2Data(device.dmp_logger_id, flags_out, label=False, strip_dst=True)
# if data_out.count().sum(axis=None):
# api.postLevel1Data(device.dmp_logger_id, data_out, label=False, strip_dst=True)
# if flags_out.count().sum(axis=None):
# api.postLevel2Data(device.dmp_logger_id, flags_out, label=False, strip_dst=True)
# break
def bailOut(logger, device):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment