ULTRA l1a phx tof high energy - #1919
Merged
lacoak21 merged 7 commits intoJul 10, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds support for two new ULTRA L1A histogram products (high angular and high energy TOF), updates the decompression tools to accept packet properties for image dimensions, and provides corresponding tests and CDF configuration.
- Extend
PacketPropertiesto includeimage_panesand pixel window dimensions; defineULTRA_TOF_HIGH_ANGULARandULTRA_TOF_HIGH_ENERGY. - Update
process_ultra_tofanddecompress_imageto use the new packet properties. - Add tests, fixtures, and CDF global attribute entries for the new data products.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| imap_processing/ultra/l1a/ultra_l1a.py | Route new APIDs through process_ultra_tof with packet props. |
| imap_processing/ultra/l0/ultra_utils.py | Extend PacketProperties and add new TOF_HIGH constants. |
| imap_processing/ultra/l0/decom_ultra.py | Update process_ultra_tof signature and coordinate setup. |
| imap_processing/ultra/l0/decom_tools.py | Change decompress_image to accept packet_props tuple. |
| imap_processing/tests/ultra/unit/conftest.py | Rename CCSDS fixtures for high angular/energy TOF. |
| imap_processing/tests/ultra/unit/test_decom_apid_883.py | Update references to use high angular TOF constants. |
| imap_processing/tests/ultra/unit/test_decom_apid_884.py | Add test for high energy TOF decompression output. |
| imap_processing/tests/ultra/unit/test_ultra_l1a.py | Add tests for high angular and high energy CDF generation. |
| imap_processing/tests/external_test_data_config.py | Register external data files for high energy TOF. |
| imap_processing/cdf/config/imap_ultra_global_cdf_attrs.yaml | Add global CDF attrs for high energy TOF products. |
Comments suppressed due to low confidence (3)
imap_processing/cdf/config/imap_ultra_global_cdf_attrs.yaml:41
- Indentation for this block is inconsistent with the preceding block (2 spaces vs. 4); align its child keys under the same indentation level to ensure valid YAML parsing.
imap_ultra_l1a_90sensor-histogram-ena-phxtof-hi-nrg:
imap_processing/tests/ultra/unit/conftest.py:89
- The generic
decom_test_datafixture expects accsds_pathfixture, but onlyccsds_path_tof_high_angularandccsds_path_tof_high_energyare defined. Either add an aliasccsds_path = ccsds_path_tof_high_angularor updatedecom_test_datato lookup the correct fixture name.
def ccsds_path_tof_high_angular():
imap_processing/ultra/l0/decom_tools.py:7
- [nitpick] The
parse_eventimport is unused in this file; remove it to avoid clutter and satisfy lint rules.
PacketProperties,
lacoak21
force-pushed
the
ultra_l1a_phxtof_apid884
branch
from
July 9, 2025 17:33
379e236 to
48c6573
Compare
greglucas
approved these changes
Jul 9, 2025
laspsandoval
approved these changes
Jul 9, 2025
laspsandoval
left a comment
Contributor
There was a problem hiding this comment.
Nicely done! Making amazing progress!
lacoak21
merged commit Jul 10, 2025
961a45e
into
IMAP-Science-Operations-Center:dev
14 checks passed
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
closes #1857
Overview
Add code to produce ultra l1a high energy cdfs
New Files
Updated Files
Testing
Add testing for new data product