add load metadata

This commit is contained in:
François Boulogne 2024-11-19 07:50:51 +01:00
parent a35cf796ab
commit 5d9a8a4498
3 changed files with 13 additions and 1 deletions

View file

@ -1 +1 @@
__version__ = '0.1.4'
__version__ = '0.1.5'

View file

@ -1,5 +1,7 @@
import pandas as pd
import numpy as np
import yaml
def load_data_RH_logger(filepath, every=1):
"""
@ -21,3 +23,12 @@ def load_data_RH_logger(filepath, every=1):
df = df.reset_index()
del df['index']
return df.iloc[::every]
def load_metadata(filepath):
"""
"""
with open(tilepath, 'r') as stream:
metadata = yaml.safe_load(stream)
return metadata

View file

@ -1,2 +1,3 @@
numpy
pandas
pyyaml