From b8f79af12100ef45399194dfad0e2c7749dffa72 Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Mon, 22 Nov 2021 18:19:02 +0100 Subject: [PATCH] tlc --- studyprocessor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/studyprocessor.py b/studyprocessor.py index f19118b..5c94065 100644 --- a/studyprocessor.py +++ b/studyprocessor.py @@ -252,12 +252,12 @@ class StudyProcessor(Aggregator, HDF5Container): nb_sink = np.int(content[i].split("=")[1]) mass_sink = np.float(content[i + 1].split("=")[1]) time = np.float(content[i + 2].split("=")[1]) - timekey = np.float(content[i + 2].split("=")[0]) + timekey = content[i + 2].split("=")[0] series["nb_sink"][run].append(nb_sink) series["mass_sink"][run].append(mass_sink) if "[yr]" not in timekey: - time *= self.info["unit_time"].express(U.yr) + time *= self.info["unit_time"].express(U.year) series["time"][run].append(time) except (ValueError, IndexError): @@ -562,7 +562,7 @@ class StudyProcessor(Aggregator, HDF5Container): self._extract_sinks_from_log, ), group="/series", - unit={"time": U.yr, "mass_sink": U.Msun, "nb_sink": U.none}, + unit={"time": U.year, "mass_sink": U.Msun, "nb_sink": U.none}, description={ "time": "Time", "mass_sink": "Total mass of stars",