From 953ea90c67daaf99590718cb73e89b92caccf0da Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 20 Oct 2025 16:07:18 -0700 Subject: [PATCH] fix to bandpass filter --- flares.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flares.py b/flares.py index 6e302ed..c3ae374 100644 --- a/flares.py +++ b/flares.py @@ -1070,7 +1070,8 @@ def filter_the_data(raw_haemo): average=True, xscale="log", color="r", show=False, amplitude=False ) - raw_haemo = raw_haemo.filter(l_freq=None, h_freq=0.4, h_trans_bandwidth=0.2) + #raw_haemo = raw_haemo.filter(l_freq=None, h_freq=0.4, h_trans_bandwidth=0.2) + raw_haemo = raw_haemo.filter(0.05, 0.7, h_trans_bandwidth=0.2, l_trans_bandwidth=0.02) raw_haemo.compute_psd(fmax=2).plot( average=True, xscale="log", axes=fig_filter.axes, color="g", amplitude=False, show=False @@ -2827,7 +2828,7 @@ def calculate_dpf(file_path): # order is hbo / hbr with h5py.File(file_path, 'r') as f: wavelengths = f['/nirs/probe/wavelengths'][:] - logger.info("Wavelengths (nm):", wavelengths) + logger.info(f"Wavelengths (nm): {wavelengths}") wavelengths = sorted(wavelengths, reverse=True) age = float(AGE) logger.info(f"Their age was {AGE}")