From c9fdb8c60bc4c21b157d35ace73acc7e713e8617 Mon Sep 17 00:00:00 2001
From: Tamas Gal <himself@tamasgal.com>
Date: Tue, 30 Jul 2024 09:43:38 +0200
Subject: [PATCH] Fix timeres readout

---
 backend/scripts/time_residuals.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/backend/scripts/time_residuals.py b/backend/scripts/time_residuals.py
index 758fd2f..582cb00 100755
--- a/backend/scripts/time_residuals.py
+++ b/backend/scripts/time_residuals.py
@@ -39,14 +39,15 @@ def main():
         print("Reading data...")
         df = pd.read_csv(
             args['TIME_RESIDUALS_FILE'],
-            names=["run", "timestamp", "du", "floor", "dom_id", "t_res", "Q"]
+            names=["run", "timestamp", "du", "floor", "dom_id", "t_res", "Q"],
+            header=1,
         )
         df = df[df.timestamp > time.time() - 60 * 60 * hours]
         print(f" -> number of entries: {len(df)}")
 
         fig, axes = plt.subplots(nrows=6,
                                  ncols=3,
-                                 figsize=(16, 16),
+                                 figsize=(32, 48),
                                  sharex=True,
                                  sharey=False,
                                  constrained_layout=True)
-- 
GitLab