-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Ins: MAGRelated to the MAG instrumentRelated to the MAG instrumentbugSomething isn't workingSomething isn't working
Description
Description of the issue
I'm seeing an issue where the MAG L1D processing is failing due to "ValueError: Cannot apply_along_axis when any iteration dimensions are 0". Not sure if this is a legitimate failure or a bug.
Steps to reproduce the issue
["--instrument","mag","--data-level","l1d","--descriptor","norm-srf","--start-date","20251220","--version","v001","--dependency","imap_mag_l1d_norm-srf-796b1098_20251220_v001.json","--upload-to-sdc"]
imap_mag_l1d_norm-srf-796b1098_20251220_v001.json
Expected vs Actual behavior
Processing MAG l1d
58
2026-03-04T03:14:57.347Z
Traceback (most recent call last):
59
2026-03-04T03:14:57.347Z
File "/usr/local/bin/imap_cli", line 8, in <module>
60
2026-03-04T03:14:57.347Z
sys.exit(main())
61
2026-03-04T03:14:57.348Z
^^^^^^
62
2026-03-04T03:14:57.348Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/cli.py", line 1604, in main
63
2026-03-04T03:14:57.348Z
instrument.process()
64
2026-03-04T03:14:57.348Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/cli.py", line 447, in process
65
2026-03-04T03:14:57.348Z
products = self.do_processing(dependencies)
66
2026-03-04T03:14:57.348Z
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67
2026-03-04T03:14:57.348Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/cli.py", line 1161, in do_processing
68
2026-03-04T03:14:57.349Z
datasets = mag_l1d(
69
2026-03-04T03:14:57.349Z
^^^^^^^^
70
2026-03-04T03:14:57.349Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/mag/l1d/mag_l1d.py", line 121, in mag_l1d
71
2026-03-04T03:14:57.349Z
l1d_burst = MagL1d(
72
2026-03-04T03:14:57.349Z
^^^^^^^
73
2026-03-04T03:14:57.349Z
File "<string>", line 16, in __init__
74
2026-03-04T03:14:57.349Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/mag/l1d/mag_l1d_data.py", line 180, in __post_init__
75
2026-03-04T03:14:57.349Z
self.vectors, self.magi_vectors = self._calibrate_and_offset_vectors(
76
2026-03-04T03:14:57.349Z
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
2026-03-04T03:14:57.349Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/mag/l1d/mag_l1d_data.py", line 355, in _calibrate_and_offset_vectors
78
2026-03-04T03:14:57.349Z
mago_vectors = MagL2L1dBase.apply_calibration(
79
2026-03-04T03:14:57.349Z
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
2026-03-04T03:14:57.349Z
File "/usr/local/lib/python3.12/site-packages/imap_processing/mag/l2/mag_l2_data.py", line 370, in apply_calibration
81
2026-03-04T03:14:57.349Z
calibrated_vectors = np.apply_along_axis(
82
2026-03-04T03:14:57.349Z
^^^^^^^^^^^^^^^^^^^^
83
2026-03-04T03:14:57.349Z
File "/usr/local/lib/python3.12/site-packages/numpy/lib/_shape_base_impl.py", line 387, in apply_along_axis
84
2026-03-04T03:14:57.349Z
raise ValueError(
85
2026-03-04T03:14:57.349Z
ValueError: Cannot apply_along_axis when any iteration dimensions are 0
Code Snippet (If applicable)
CodeAdditional notes, affected areas, and suggested fixes
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Ins: MAGRelated to the MAG instrumentRelated to the MAG instrumentbugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo