From 0e26a1b68d45a79191770fdef4914d693ded127a Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Wed, 25 Jun 2025 22:22:02 -0700 Subject: [PATCH] Do not add 'corrected with fluo_bl_threshold=...' metadata to biolume_bg_biolume. --- src/data/resample.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/data/resample.py b/src/data/resample.py index 4a8d6424..34653107 100755 --- a/src/data/resample.py +++ b/src/data/resample.py @@ -990,9 +990,10 @@ def _interval_contains_sunevent( # Also add the fluo_bl_threshold value to the comment attribute for var in saved_attrs: self.df_r[var].attrs = saved_attrs[var] - self.df_r[var].attrs["comment"] += ( - f"; corrected with fluo_bl_threshold={fluo_bl_threshold}" - ) + if var in ["biolume_proxy_diatoms", "biolume_proxy_adinos", "biolume_proxy_hdinos"]: + self.df_r[var].attrs["comment"] += ( + f"; corrected with fluo_bl_threshold={fluo_bl_threshold}" + ) def resample_variable( # noqa: PLR0913 self,