Skip to content

Commit 29d1c00

Browse files
author
Menlo Innovations - CAVA Project
committed
Harrison L3 - GSTU/EYEA - CoDICE: Change expected variable name from L2 hi-sectored product to spin_angle
1 parent 47f4af1 commit 29d1c00

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

imap_l3_processing/codice/l3/hi/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def read_from_cdf(cls, l2_sectored_intensities_cdf):
273273
with CDF(str(l2_sectored_intensities_cdf)) as cdf:
274274
return cls(epoch=cdf["epoch"][...],
275275
epoch_delta_plus=np.array([timedelta(seconds=ns / 1e9) for ns in cdf["epoch_delta_plus"][...]]),
276-
spin_angles=cdf['spin_angles'][...],
276+
spin_angles=cdf['spin_angle'][...],
277277
elevation_angle=cdf['elevation_angle'][...],
278278
data_quality=cdf['data_quality'][...],
279279
h_intensities=read_numeric_variable(cdf['h']),

tests/codice/l3/hi/test_models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,14 @@ def test_codice_hi_l3_pitch_angle_to_data_product(self):
187187
np.testing.assert_array_equal(data_product_var.value, np.array([10 * 1e9]))
188188

189189
def test_l2_sectored_intensities_read_from_sdc_cdf(self):
190-
l2_path = get_test_instrument_team_data_path(
191-
"codice/hi/imap_codice_l2_hi-sectored_20250814_v002.cdf")
190+
l2_path = get_test_instrument_team_data_path("codice/hi/imap_codice_l2_hi-sectored_20251206_v002.cdf")
192191
l2_sectored_data = CodiceHiL2SectoredIntensitiesData.read_from_cdf(l2_path)
193192

194193
with CDF(str(l2_path)) as cdf:
195194
np.testing.assert_array_equal(l2_sectored_data.epoch, cdf["epoch"])
196195
expected_epoch_delta = np.array([timedelta(seconds=ns / 1e9) for ns in cdf["epoch_delta_plus"][...]])
197196
np.testing.assert_array_equal(l2_sectored_data.epoch_delta_plus, expected_epoch_delta)
198-
np.testing.assert_array_equal(l2_sectored_data.spin_angles, cdf['spin_angles'][...])
197+
np.testing.assert_array_equal(l2_sectored_data.spin_angles, cdf['spin_angle'][...])
199198
np.testing.assert_array_equal(l2_sectored_data.elevation_angle, cdf['elevation_angle'])
200199

201200
np.testing.assert_array_equal(l2_sectored_data.data_quality, cdf['data_quality'])

tests/periodically_run_tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"test_ultra_all_sp_maps": "2026-01-26T13:05:08.238429",
66
"test_ultra_combined_maps": null,
77
"test_ultra_combined_nsp_maps": "2026-01-20T14:20:23.754122",
8-
"test_ultra_combined_sp_maps": "2026-01-20T14:02:08.503711"
8+
"test_ultra_combined_sp_maps": "2026-01-29T13:42:59.404468"
99
}
Binary file not shown.

0 commit comments

Comments
 (0)