From 147b4cfb587234e3dbb5f6e2efc6874b6247672b Mon Sep 17 00:00:00 2001 From: mecuesta Date: Wed, 4 Mar 2026 09:39:29 -0500 Subject: [PATCH 1/2] Comment out a line in pyproject.toml to resolve versioning issue --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 182bffd6..b9cd8278 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,8 @@ dependencies = [ "spiceypy==6.0.0", "uncertainties==3.2.2", "xarray==2025.3.1", - "imap-processing>=1.0.20", +# Versioning is meh +#"imap-processing>=1.0.20", "hatchling", "uv-dynamic-versioning" ] From d521a21e6d4fca9b0fe5dcca421fd55f082d983f Mon Sep 17 00:00:00 2001 From: mecuesta Date: Thu, 12 Mar 2026 13:47:19 -0400 Subject: [PATCH 2/2] To Catch swp_flags accessing --- imap_l3_processing/swe/l3/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imap_l3_processing/swe/l3/utils.py b/imap_l3_processing/swe/l3/utils.py index 7f3add53..a70d58ff 100644 --- a/imap_l3_processing/swe/l3/utils.py +++ b/imap_l3_processing/swe/l3/utils.py @@ -57,7 +57,11 @@ def read_l3a_swapi_proton_data(swapi_l3a_data: Path) -> SwapiL3aProtonData: proton_sw_speed = read_numeric_variable(cdf["proton_sw_speed"]) proton_sw_clock_angle = read_numeric_variable(cdf["proton_sw_clock_angle"]) proton_sw_deflection_angle = read_numeric_variable(cdf["proton_sw_deflection_angle"]) - swp_flags = read_numeric_variable(cdf["swp_flags"]) + ### MEC: insert try-except to catch swp_flags issue + try: + swp_flags = read_numeric_variable(cdf["swp_flags"]) + except: + swp_flags = np.zeros(len(epoch)) return SwapiL3aProtonData(epoch=epoch, epoch_delta=epoch_delta,