From 640a89c6fcb1091fa36d5f81bb87e6391bfdecbf Mon Sep 17 00:00:00 2001 From: Luisa Coakley Date: Thu, 1 Oct 2026 10:05:03 -0600 Subject: [PATCH 1/2] skip checking schema with string vars to reduce warnings in l1a processing --- imap_processing/idex/idex_l1a.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imap_processing/idex/idex_l1a.py b/imap_processing/idex/idex_l1a.py index c5156531d..f928cb641 100644 --- a/imap_processing/idex/idex_l1a.py +++ b/imap_processing/idex/idex_l1a.py @@ -960,11 +960,15 @@ def process(self) -> Dataset | None: # rename idx__txhdrfswaidcopy to aid for better readability in the final # dataset var_name = "aid" if var == "idx__txhdrfswaidcopy" else var + # String (enumerated) variables don't need numeric schema attributes + # like VALIDMIN/VALIDMAX/DISPLAY_TYPE, so skip the schema check for them. trigger_vars[var_name] = xr.DataArray( name=var_name, data=[value], dims=("epoch"), - attrs=idex_attrs.get_variable_attributes(var), + attrs=idex_attrs.get_variable_attributes( + var, check_schema=not isinstance(value, str) + ), ) data_vars = { From e991d607abbf9796ac041cfa038897edf912f8a3 Mon Sep 17 00:00:00 2001 From: Luisa Coakley Date: Thu, 1 Oct 2026 10:15:23 -0600 Subject: [PATCH 2/2] update comment: --- imap_processing/idex/idex_l1a.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap_processing/idex/idex_l1a.py b/imap_processing/idex/idex_l1a.py index f928cb641..6dce80771 100644 --- a/imap_processing/idex/idex_l1a.py +++ b/imap_processing/idex/idex_l1a.py @@ -960,8 +960,8 @@ def process(self) -> Dataset | None: # rename idx__txhdrfswaidcopy to aid for better readability in the final # dataset var_name = "aid" if var == "idx__txhdrfswaidcopy" else var - # String (enumerated) variables don't need numeric schema attributes - # like VALIDMIN/VALIDMAX/DISPLAY_TYPE, so skip the schema check for them. + # Str variables don't need schema attributes like + # UNITS/VALIDMIN/VALIDMAX/DISPLAY_TYPE so skip the schema check for them. trigger_vars[var_name] = xr.DataArray( name=var_name, data=[value],