-
Notifications
You must be signed in to change notification settings - Fork 8
XRT DEM Iterative Solver Module #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 244 commits
86db756
4d7c6c3
48ece65
2807698
8358176
c3771eb
74dd7bd
25c5db3
ff31804
2838869
9561400
138607c
0fa5fe1
21a531a
5c991ee
1816707
2fc245f
3c7a4bc
a74729d
c2c4c35
3944f7f
7036ad5
cbcba8f
dca1482
8607a60
d24c662
0068823
2ef60eb
bf99867
6d1f9b3
02b188b
be936b6
f05960e
156c4b2
fac60a0
18a79ba
4fdce42
446d443
d82e0f5
42e90a6
81ad0bf
a42ad9c
bd2b627
dc3ee4c
3d34d03
6716aa9
ce3eafc
8cce0c5
1916386
17d9d38
2cf71f9
761d98a
a5371b6
f45d226
a5753cf
4da0801
368dead
df229eb
52c1ee4
cc33c20
ba2dd65
fb09050
839cab9
e917a48
86f4149
05c5439
0f3135d
637aae7
cb6edcf
69bd45e
ee36971
1fe04cb
44de13d
c48aafc
f02dee8
3e0502b
825f878
9d3a863
8750b78
a5bcd28
08da812
d1d7214
31afce2
f092029
37099b1
e79709f
c2b8f00
b1e4fab
153593c
a4127f1
f892208
ea9121b
70a9769
26acfe8
7d85b17
697daf1
ee34058
4155a1e
baeba6f
fb45468
d69d012
7b4d9c6
324c36a
56c5096
1426578
9c0f0cd
477f6a8
ba02fb1
54a587f
8afe3cc
e16210e
41dfa29
0eeb78d
7509568
da01388
33abf4f
17c6590
d8efece
d6f0099
38cc1d3
c9d78c1
c1769d6
4300a67
9e0355d
a19b235
8cd0d9a
71534f9
f3c49d2
5ab021d
b04bdef
5ace46f
f649c9b
010bb73
90ab741
4820e47
42591e8
12afcc7
b862be5
8627364
c346b54
90dc1a0
f08dbba
4f166f1
6ff262b
fd3489f
64b8f6a
6488dd0
fc70428
c0f4c0f
0f894d3
0aa42b5
4358da5
4745ebb
aea8dee
c45731f
be85604
ece4fbc
ac88d85
25d6faf
da34ef8
7f856dc
796d302
bcd4b6b
d33bf49
ddbff64
ce14c67
c149483
0d0dc4d
46b01f4
d25a54e
36d3ed6
3a3388f
60e7299
8197c63
5e74e50
3f0f401
cfb0f00
74c13f9
60dba66
18913e9
81b61d4
b72b28c
e933057
49ac973
b3c9f46
a617859
e2e4eef
564633c
99d8d35
7bdea4d
cf84bc0
bfbc35e
7643e6f
d568aaf
f0a910a
b8859ef
d257af0
f042bb5
d481a0a
b4d70ff
05d76f7
582c8f7
8b054ed
45cdab6
2638236
5fad287
ce10dc2
19cff82
9e2e392
8d3b5d8
956facd
167bccf
b0c8699
a91b179
347c10a
5016150
39f4f3d
e36eb09
1df976b
5b97d57
7593350
d34dea9
46d9a71
b413a30
6c14142
0e8289e
337dba6
b1ac0ba
64f3295
558254d
4d50ffa
885de43
b745a24
7ef1aae
bb258ef
510fd51
1ffbaa2
19e857c
d7d1cb6
3e029b0
3e420ef
164950d
3728ddb
f4e8450
1305f61
d467d58
a9c4743
6f1a853
a4619c6
7d9e2a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,3 +149,5 @@ version.py | |
|
|
||
| # local directory | ||
| idl_routines/ | ||
|
|
||
| /uv.lock | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| import sys | ||
| from pathlib import Path | ||
|
|
||
| import matplotlib as mpl | ||
|
|
||
| mpl.use("Agg") | ||
|
|
||
| sys.path.insert(0, str(Path(__file__).resolve().parent)) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,48 @@ | ||||||
| XRTpy v0.6.0 | ||||||
| ========================= | ||||||
|
|
||||||
| New Features | ||||||
| ------------ | ||||||
| - Introduced :class:`~xrtpy.xrt_dem_iterative.XRTDEMIterative`, a Python | ||||||
| implementation of the IDL routine ``xrt_dem_iterative2.pro``. This solver | ||||||
| uses spline-parameterized DEM curves and iterative least-squares fitting to | ||||||
| infer the differential emission measure from Hinode/XRT multi-filter | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| observations. (`#PR <https://github.com/HinodeXRT/xrtpy/pull/PR>`__) | ||||||
| - Added Monte Carlo uncertainty estimation to the DEM solver through the | ||||||
| ``monte_carlo_runs`` parameter. Perturbed intensity realizations are used | ||||||
| to estimate the spread in DEM(T). | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - Added support for user-supplied intensity uncertainties through the | ||||||
| ``intensity_errors`` parameter. If not provided, the default uncertainty is | ||||||
| ``max(0.03 * intensity, 2 DN/s/pix)``, matching the IDL behavior. | ||||||
| - Added ``plot_dem()`` and ``plot_dem_mc()`` methods to | ||||||
| :class:`~xrtpy.xrt_dem_iterative.XRTDEMIterative` for visualizing the base | ||||||
| DEM solution and Monte Carlo ensemble. | ||||||
| - Added a ``summary()`` method to | ||||||
| :class:`~xrtpy.xrt_dem_iterative.XRTDEMIterative` that reports the solver | ||||||
| configuration, inputs, and results. | ||||||
|
|
||||||
| Documentation Updates | ||||||
| --------------------- | ||||||
| - Added a new DEM overview page introducing DEM analysis with Hinode/XRT, | ||||||
| describing the mathematical background, and providing worked examples | ||||||
| using :class:`~xrtpy.xrt_dem_iterative.XRTDEMIterative`. | ||||||
| - Added an API reference page for ``xrtpy.xrt_dem_iterative``. | ||||||
| - Updated the general documentation, including the XRT overview, getting | ||||||
| started guide, glossary, and documentation index. (`#398 | ||||||
| <https://github.com/HinodeXRT/xrtpy/pull/398>`__) | ||||||
|
|
||||||
| Testing and Infrastructure | ||||||
| -------------------------- | ||||||
| - Enabled parallel test execution and improved pytest output and test | ||||||
| distribution settings. (`#400 | ||||||
| <https://github.com/HinodeXRT/xrtpy/pull/400>`__) | ||||||
| - Added Python 3.14 to the supported Python versions and continuous | ||||||
| integration test matrix. (`#401 | ||||||
| <https://github.com/HinodeXRT/xrtpy/pull/401>`__) | ||||||
|
|
||||||
| Compatibility | ||||||
| ------------- | ||||||
| - Requires Python 3.11 or later. | ||||||
| - Added support for Python 3.14. (`#401 | ||||||
| <https://github.com/HinodeXRT/xrtpy/pull/401>`__) | ||||||
| - Added dependencies on ``lmfit`` and ``scipy``. | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,16 @@ | |
|
|
||
| # -- stdlib imports ------------------------------------------------------------ | ||
| import os | ||
| import sys | ||
| import warnings | ||
| from datetime import datetime, timezone | ||
| from pathlib import Path | ||
|
|
||
| from packaging.version import Version | ||
|
|
||
| # Ensure Sphinx imports the local xrtpy checkout (repo root), not site-packages | ||
| sys.path.insert(0, str(Path(__file__).resolve().parents[1])) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎗️ Was there a new recommended Python way of doing this? 🤔 |
||
|
|
||
| # -- Read the Docs Specific Configuration -------------------------------------- | ||
| # This needs to be done before xrtpy is imported | ||
| on_rtd = os.environ.get("READTHEDOCS", None) == "True" | ||
|
|
@@ -230,6 +234,7 @@ | |
| "feedback_communication*": [], | ||
| "contributing*": [], | ||
| "code_of_conduct*": [], | ||
| "dem_overview*": [], | ||
| } | ||
| # Add any paths that contain custom static files (such as style sheets) here, | ||
| # relative to this directory. They are copied after the builtin static files, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.