From 4b6961e250aba50f266f44eedb8cda45d32a443b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20M=C3=BCller?= Date: Mon, 8 Jan 2024 11:02:17 +0100 Subject: [PATCH] Update Measurement.py Unnoticed Typos after update * Data => data * nonaccessible attributes start with _ instead of __ --- cuvis/Measurement.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cuvis/Measurement.py b/cuvis/Measurement.py index 46ad26e..b556ee5 100644 --- a/cuvis/Measurement.py +++ b/cuvis/Measurement.py @@ -138,13 +138,11 @@ def get_thumbnail(self): def get_data_info(self): return_dict = {} for att in self.data["IMAGE_info"].__dir__(): - if not (att.startswith("__") or att.startswith("this")): + if not (att.startswith("__") or att.startswith("this") or att.startswith("_")): return_dict.update( - {att: self.Data["IMAGE_info"].__getattribute__(att)}) + {att: self.data["IMAGE_info"].__getattribute__(att)}) try: - return_dict["readout_time"] = str( - base_datetime + datetime.timedelta( - milliseconds=return_dict["readout_time"])) + return_dict["readout_time"] = str(return_dict["readout_time"]) except: print("No human readable readout_time available!") return return_dict