Repository navigation
XRT DEM Iterative Solver Module - #367
joyvelasquez wants to merge 313 commits into
Conversation
|
Ensure the function checks for minimum required inputs (filters, observed intensities, etc.) and validates that all observation values are non-zero before proceeding. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #367 +/- ##
===========================================
- Coverage 87.97% 49.69% -38.29%
===========================================
Files 26 35 +9
Lines 1855 3284 +1429
Branches 110 235 +125
===========================================
Hits 1632 1632
- Misses 180 1609 +1429
Partials 43 43 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2041e0a to
bd4687b
Compare
Co-authored-by: Nick Murphy <namurphy@users.noreply.github.com>
Co-authored-by: Nick Murphy <namurphy@users.noreply.github.com>
Co-authored-by: Nick Murphy <namurphy@users.noreply.github.com>
|
I'd suggest using this repository only for tests that get run in CI, and that we create a separate repository for cross-comparisons. Moving stuff to a different repository could be done after this PR, but we'd want to update |
There was a problem hiding this comment.
Some ideas:
- Move the validation scripts not used in CI to a top-level folder, such as
dem_validationor whatever you prefer - Add the data files to a separate PR so that it's easier to review this one?
- Exclude the validation scripts/data from sdists and wheels (#420)
- Add regression tests to show that the results stay the same (similar) as they are now? Possibly with
pytest-regression?
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
| "--save", | ||
| action="store_true", | ||
| help="Save PNGs instead of showing interactively.", | ||
| help="Save ONGs instead of showing interactively.", |
There was a problem hiding this comment.
need to change back ONGs → PNGs
…mc_comparison.py Co-authored-by: Nick Murphy <namurphy@users.noreply.github.com>
…mc_comparison.py Co-authored-by: Nick Murphy <namurphy@users.noreply.github.com>
…lasma-decoder-dem-solver
There was a problem hiding this comment.
Two possibilities for this file:
- Instead of repeating the same commands, a possibility would be to use pytest fixtures.
- In tests with multiple assert statements, a possibility would be to use
pytest-check. That way, if one of the early assertions fails, then the rest of the assertions will still get checked.
This might be a good opportunity to request AI to make the changes since they're pretty straightforward, even if confusing to humans. 😅
Summary
This PR introduces
XRTDEMIterative, a Python implementation of the IDLroutine
xrt_dem_iterative2.profor estimating Differential EmissionMeasures (DEMs) from Hinode/XRT multi-filter observations.
What's Included
Core Solver (
dem_solver.py)XRTDEMIterativeclass with full DEM solving pipelinefitting via
lmfitmax(0.03 * intensity, 2 DN/s/pix), matching IDL default behaviormonte_carlo_runsparameterintensities, missing errors)
summary()method for diagnostic outputPlotting (
dem_plotting.py)plot_dem()— base DEM solution visualizationplot_dem_mc()— base DEM + Monte Carlo ensemble overlayTests
response interpolation, spline system, residuals, solver, and
Monte Carlo behavior
Documentation
dem_overview.rst— introduction to DEM analysis with XRTpyxrtpy.xrt_dem_iterativedocs/changelog/0.6.0.rstValidation -
xrt_dem_iterative2.proacross multiplesolar observation cases using Monte Carlo comparison