diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-11-12 10:58:33 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-11-12 10:58:33 +0100 |
commit | 69d4a3e2c683dd1233e390804461fce9afce85cb (patch) | |
tree | 3a3a2d7a49a805dc429640a2ae2dc5310d122569 /lib/model.py | |
parent | 085de870d141f60f8757d992a7ce243b933cb76f (diff) |
dataref: export number of samples per measurement class
Diffstat (limited to 'lib/model.py')
-rw-r--r-- | lib/model.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/model.py b/lib/model.py index a9a70a9..2ee3c03 100644 --- a/lib/model.py +++ b/lib/model.py @@ -442,6 +442,8 @@ class AnalyticModel: for k, v in param_data.items(): ret[f"paramcount/{name}/{k}"] = v for attr_name, attr in self.attr_by_name[name].items(): + # attr.data must be the same for all attrs + ret[f"data/{name}/num samples"] = len(attr.data) unit = None if "power" in attr.attr: unit = r"\micro\watt" |