Fix esa_step dimension mismatch in CoDICE-Lo processing#2574
Closed
Fix esa_step dimension mismatch in CoDICE-Lo processing#2574
Conversation
Co-authored-by: laspsandoval <46567335+laspsandoval@users.noreply.github.com>
Co-authored-by: laspsandoval <46567335+laspsandoval@users.noreply.github.com>
Co-authored-by: laspsandoval <46567335+laspsandoval@users.noreply.github.com>
…idation Co-authored-by: laspsandoval <46567335+laspsandoval@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix codice_lo processing error in AWS
Fix esa_step dimension mismatch in CoDICE-Lo processing
Jan 13, 2026
Contributor
|
can we close this since this PR, #2562 handles this also? |
Contributor
Yes. Closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Overview
CoDICE-Lo processing fails in AWS with dimension mismatch error when LUT contains ESA sweep configurations with 104 steps instead of the hardcoded 128:
New Dependencies
None
New Files
None
Deleted Files
None
Updated Files
imap_processing/codice/codice_l1a_lo_species.pyesa_stepsfrom voltage_data length instead of constantacquisition_time_per_stepto match actual dimensionsimap_processing/codice/codice_l1a_lo_angular.pyimap_processing/codice/codice_l1a_lo_priority.pyNUM_ESA_STEPSconstant with dynamic sizingimap_processing/codice/codice_l1a_lo_counters_aggregated.pyesa_stepvariable from voltage_data lengthimap_processing/codice/codice_l2.pycompute_geometric_factors()to detect dataset esa_step dimension and slice lookup tables accordinglylen(esa_kev)Testing
Logic verified with unit tests for array slicing. Changes are backward compatible with existing 128-step configurations.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.dev.imap-mission.com/usr/bin/python python -m pytest imap_processing/tests/ialirt/unit/test_process_codice.py::test_create_xarray_dataset_basic -xvs(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.