diff --git a/backend/scripts/time_residuals.py b/backend/scripts/time_residuals.py index 3ee6ba8ff1793071af98edf90d082f48bd5981cc..7c0bb254b09f0d177b1a714f77328eaea722421c 100755 --- a/backend/scripts/time_residuals.py +++ b/backend/scripts/time_residuals.py @@ -37,6 +37,10 @@ def main(): while True: print("Reading data...") + df = pd.read_csv( + args['TIME_RESIDUALS_FILE'], + names=["run", "timestamp", "du", "floor", "dom_id", "t_res", "Q"] + ) df = pd.read_csv(args['TIME_RESIDUALS_FILE']) df = df[df.timestamp > time.time() - 60 * 60 * hours] print(f" -> number of entries: {len(df)}")