Repository navigation
Conversation
Collaborator
Author
|
https://github.com/spacetelescope/RegressionTests/actions/runs/46741132380 diffs are not related |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11090 +/- ##
==========================================
+ Coverage 88.59% 88.63% +0.04%
==========================================
Files 384 385 +1
Lines 41559 41706 +147
==========================================
+ Hits 36819 36966 +147
Misses 4740 4740 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Resolves JP-4446
Description
The primary aim of this PR is to permit saving and loading the geometric part of the dispersion calculation to/from disk as a pixel dispersion table (PDT). This is helpful for users for three reasons:
The plan is NOT to enable this in operations, at least for now.
Please see the documentation updates for more details on the PDT file format and the new step-level parameters.
Secondary changes
A few other changes rode along here:
TracePDTtoDispersionTransformInterpolator, to disambiguate this interpolation function (which is similar to but not exactly a PDT) from the real PDT that we are not savingmax_pixels_per_chunkin size, sources are now only ever split between chunks if they themselves contain more thanmax_pixels_per_chunkpixels. Multiple sources can still live within one chunk as long as their total size is smaller thanmax_pixels_per_chunk. This makes it much easier to parallelize PDT save/load while keeping files organized sensibly. It also means that in general more chunks are created, but this effect is mostly unimportant in practice.Runtime Profiling
Total runtime of WfssContamStep based on cProfile for
jw04043001001_02101_00001_nrcblong, where we're just requesting a flat flux model and running on a single core:write_pdt_to_fileswhich makes sense_open_asdfNote that the save/load operations are located within the multiprocessing context, i.e., they run in parallel if
max_cores > 1, so the runtime hit is not so severe in that case.The refactor also made the code slightly faster in the case that polynomial fitting was requested. The main reason for this is that the basis models are now evaluated on the wavelengths once and then their values are indexed according to the
wavelength_indexthat we already have to compute, as opposed to evaluating the models on every redundant per-dispersed-pixel wavelength. For the same dataset requestingpolyfit_degree=3, this saves ~60s when run on a single core (less impact on wall clock time with more cores).Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)changes/<PR#>.breaking.rstnews fragmentdocs/pageokify_regteststo update the truth filesGenerative AI Usage Disclosure
GenAI tools were used fairly extensively in preparation of this PR (Claude Sonnet 5 via GitHub Copilot). Specifically: