Skip to content
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

Use DN instead of counts everywhere #338

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

wtbarnes
Copy link
Contributor

In line with sunpy/sunpy#7585, this replaces the usage of ct/count with DN everywhere. This may cause some friction in terms of compatibility with sunpy as prior to v6, the units of any AIA map are converted to ct rather than DN. I'm not sure the best way to resolve that. We could of course just pin to >= v6, but that seems aggressive.

@nabobalis
Copy link
Contributor

Consider this a breaking change? We can do a 0.9 release for it.

Copy link

codecov bot commented Jul 21, 2024

Codecov Report

Attention: Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.

Project coverage is 69.72%. Comparing base (c3bd709) to head (37225e0).

Files Patch % Lines
aiapy/response/tests/test_channel.py 0.00% 6 Missing ⚠️
aiapy/calibrate/uncertainty.py 66.66% 1 Missing ⚠️
aiapy/response/channel.py 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (c3bd709) and HEAD (37225e0). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (c3bd709) HEAD (37225e0)
4 3
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #338       +/-   ##
===========================================
- Coverage   86.84%   69.72%   -17.13%     
===========================================
  Files          34       34               
  Lines        1209     1209               
===========================================
- Hits         1050      843      -207     
- Misses        159      366      +207     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wtbarnes
Copy link
Contributor Author

Consider this a breaking change? We can do a 0.9 release for it.

Yes, I would say so

@nabobalis
Copy link
Contributor

I think a breaking changelog and its good to go.

@wtbarnes
Copy link
Contributor Author

The docs build is failing,

/home/runner/work/aiapy/aiapy/.tox/build_docs/lib/python3.12/site-packages/aiapy/calibrate/prep.py:docstring of aiapy.calibrate.prep.degradation:1: WARNING: py:class reference target not found: Unit
/home/runner/work/aiapy/aiapy/.tox/build_docs/lib/python3.12/site-packages/aiapy/calibrate/uncertainty.py:docstring of aiapy.calibrate.uncertainty.estimate_error:1: WARNING: py:class reference target not found: Unit
/home/runner/work/aiapy/aiapy/.tox/build_docs/lib/python3.12/site-packages/aiapy/calibrate/uncertainty.py:docstring of aiapy.calibrate.uncertainty.estimate_error:1: WARNING: py:class reference target not found: Unit
/home/runner/work/aiapy/aiapy/.tox/build_docs/lib/python3.12/site-packages/aiapy/psf/psf.py:docstring of aiapy.psf.psf.psf:1: WARNING: py:class reference target not found: Unit
/home/runner/work/aiapy/aiapy/.tox/build_docs/lib/python3.12/site-packages/aiapy/response/channel.py:docstring of aiapy.response.channel.Channel:1: WARNING: py:class reference target not found: Unit
/home/runner/work/aiapy/aiapy/.tox/build_docs/lib/python3.12/site-packages/aiapy/util/util.py:docstring of aiapy.util.util.telescope_number:1: WARNING: py:class reference target not found: Unit

and I've not worked out why yet.

@nabobalis
Copy link
Contributor

Just add it to the nickpicky list.

@wtbarnes
Copy link
Contributor Author

Why do I always forget this…

@nabobalis nabobalis merged commit 1c1eeaf into LM-SAL:main Jul 23, 2024
11 of 13 checks passed
@nabobalis
Copy link
Contributor

We will pin the new version to sunpy 6.0 :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants