Skip to content

Commit b2d2019

Browse files
author
Menlo Innovations - CAVA Project
committed
Harrison L3 2754 - LFAR/PMCL - Add test cases for parsing spxnbs map descriptors
1 parent 1c6a8fd commit b2d2019

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

imap_l3_processing/lo/l3/lo_l3_spectral_fit_dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def fetch_dependencies(cls, dependencies: ProcessingInputCollection) -> LoL3Spec
1818
if len(file_names) != 1:
1919
raise ValueError("Incorrect number of dependencies")
2020

21-
lo_l3_file = file_names[0].name
22-
cdf = download(lo_l3_file)
21+
lo_file = file_names[0].name
22+
cdf = download(lo_file)
2323

2424
return cls(RectangularIntensityMapData.read_from_path(cdf))

tests/maps/test_map_descriptors.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ def test_parse_map_descriptor(self):
110110
PixelSize.SixDegrees,
111111
"1yr",
112112
MapQuantity.ISNBackgroundSubtracted, "")),
113+
("l090-spxnbs-h-sf-nsp-ram-hae-6deg-1yr", MapDescriptorParts(Sensor.Lo90, ReferenceFrame.Spacecraft,
114+
no_sp, SpinPhase.RamOnly, "hae",
115+
PixelSize.SixDegrees,
116+
"1yr",
117+
MapQuantity.SpectralIndex, "nbs")),
118+
("l090-spxnbs-h-hk-nsp-ram-hae-6deg-1yr", MapDescriptorParts(Sensor.Lo90, ReferenceFrame.HeliosphericKinematic,
119+
no_sp, SpinPhase.RamOnly, "hae",
120+
PixelSize.SixDegrees,
121+
"1yr",
122+
MapQuantity.SpectralIndex, "nbs")),
113123
]
114124

115125
for descriptor, expected in test_cases:

tests/periodically_run_tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"test_l3bcde_first_time_processing": "2026-01-12T15:52:36.971070",
3-
"test_spectral_fit_against_validation_data": "2026-01-13T13:11:14.411186",
3+
"test_spectral_fit_against_validation_data": "2026-01-20T10:25:03.838732",
44
"test_calculate_pickup_ions_with_minimize": "2026-01-19T15:33:51.973761",
55
"test_ultra_all_sp_maps": "2026-01-19T13:12:39.624757",
66
"test_ultra_combined_maps": null,

0 commit comments

Comments
 (0)