add process data

This commit is contained in:
François Boulogne 2024-11-25 18:24:14 +01:00
parent 5294d7adbc
commit dcb75614aa
2 changed files with 10 additions and 1 deletions

View file

@ -1 +1 @@
__version__ = '0.1.5.4'
__version__ = '0.1.5.5'

View file

@ -2,6 +2,8 @@ import pandas as pd
import numpy as np
import yaml
import os.path
from scipy.signal import savgol_filter
@ -30,6 +32,13 @@ def load_data_RH_logger(filepath, every=1):
return df.iloc[::every]
def process_data_RH_logger(filepath):
df = load_data_RH_logger(filepath, every=1)
h5path = os.path.splitext(filepath)[0]
h5path += '-processed.h5'
df.to_hdf(h5path, key='data')
def load_metadata(filepath):
"""