From 212cd5c14d42360311ccd48c825d5fe9c3d032ae Mon Sep 17 00:00:00 2001
From: Christoph Alt <christoph.alt@fau.de>
Date: Fri, 9 Sep 2022 16:34:39 +0200
Subject: [PATCH] added float conversion for field keys

---
 cbutil/data_points.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cbutil/data_points.py b/cbutil/data_points.py
index ebec1c2..bac11df 100644
--- a/cbutil/data_points.py
+++ b/cbutil/data_points.py
@@ -35,7 +35,7 @@ def data_point_factory(run, *,
     if tag_keys is None and no_tag_keys is None:
         raise ValueError("You need either specify tag_keys or no_tag_keys")
 
-    fields = {key: run[key] for key in field_keys}
+    fields = {key: float(run[key]) for key in field_keys}
 
     if tag_keys is None:
         tag_keys = run.keys() - no_tag_keys - field_keys - {time_key}
-- 
GitLab