From 068f2ea8ac0ff2eb8be038f79161bc790a17521d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Tue, 19 Nov 2024 07:56:34 +0100 Subject: [PATCH] FIX add load metadata --- labsw/__init__.py | 2 +- labsw/io.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/labsw/__init__.py b/labsw/__init__.py index 1665a31..cc3d3a9 100644 --- a/labsw/__init__.py +++ b/labsw/__init__.py @@ -1 +1 @@ -__version__ = '0.1.5.2' +__version__ = '0.1.5.3' diff --git a/labsw/io.py b/labsw/io.py index 4b1690d..647b1af 100644 --- a/labsw/io.py +++ b/labsw/io.py @@ -16,7 +16,6 @@ def load_data_RH_logger(filepath, every=1): df = df.drop(columns='X') df = df.drop(np.arange(1)) - df['dm_m'] = (df['weight'] - df['weight'].iloc[0]) / df['weight'].iloc[0] # Crop data @@ -26,9 +25,9 @@ def load_data_RH_logger(filepath, every=1): def load_metadata(filepath): - """ + """ - """ - with open(tilepath, 'r') as stream: + """ + with open(filepath, 'r') as stream: metadata = yaml.safe_load(stream) return metadata