LM-SAL / aiapy

Python library for AIA data analysis
https://aiapy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

fixed failing online test - [merged] #272

Closed nabobalis closed 8 months ago

nabobalis commented 2 years ago

Merges bugfix -> master

Fixes https://gitlab.com/LMSAL_HUB/aia_hub/aiapy/-/issues/123

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

In GitLab by @codecov on Jan 7, 2022, 10:52

Codecov Report

Merging #148 (e3a41ff) into master (93309b8) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #148   +/-   ##
=======================================
  Coverage   95.87%   95.87%           
=======================================
  Files          19       19           
  Lines         606      606           
=======================================
  Hits          581      581           
  Misses         25       25           
Impacted Files Coverage Δ
aiapy/calibrate/__init__.py 100.00% <100.00%> (ø)
aiapy/psf/__init__.py 100.00% <100.00%> (ø)
aiapy/response/__init__.py 100.00% <100.00%> (ø)
aiapy/util/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 93309b8...e3a41ff. Read the comment docs.

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 7, 2022, 11:51

Commented on aiapy/calibrate/prep.py line 81

I'm fine with this, but this feels like something we should ultimately be addressing upstream in Map.rotate

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 7, 2022, 11:54

Commented on aiapy/calibrate/tests/test_meta.py line 32

This can just be a QTable and you can create an array of astropy.time.Time objects from a list of time strings.

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 7, 2022, 11:54

Commented on aiapy/calibrate/tests/test_meta.py line 99

These are arcsec. As above, if you just create a QTable directly, no need to inject these later.

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 7, 2022, 11:54

Commented on aiapy/calibrate/tests/test_meta.py line 177

This is fine, but update_pointing includes a pointing_table keyword so you don't have to mock anything,

       aia_171_map_updated = update_pointing(aia_171_map, pointing_table=mock_pointing_table)
nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 7, 2022, 11:54

Commented on aiapy/calibrate/prep.py line 81

Also, why does this fix the issue?

nabobalis commented 2 years ago

scale_factor.value is a masked float, so by floating it, we remove the mask on it and it passes.

I don't really understand it.

nabobalis commented 2 years ago

I took this from the fido search and it was quicker.

nabobalis commented 2 years ago

changed this line in version 10 of the diff

nabobalis commented 2 years ago

changed this line in version 10 of the diff

nabobalis commented 2 years ago

changed this line in version 10 of the diff

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

E astropy.units.core.UnitConversionError: 'arcsec' (angle) and 'arcsec / pix' are not convertible

nabobalis commented 2 years ago

Fixed.

nabobalis commented 2 years ago

Fixed.

nabobalis commented 2 years ago

Fixed.

nabobalis commented 2 years ago

Tho the units being arcseconds breaks the test.

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 7, 2022, 14:59

Commented on aiapy/calibrate/tests/test_meta.py line 99

Sorry sorry sorry. It is pixel. Ignore me.

nabobalis commented 2 years ago

changed this line in version 11 of the diff

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 14, 2022, 05:38

Commented on aiapy/calibrate/prep.py line 81

Why is scale_factor a masked float?

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 14, 2022, 07:37

Commented on aiapy/calibrate/prep.py line 81

I would revert this change in favor of !151, merge this, and then I'll rebase !151 on top of master

nabobalis commented 2 years ago

Ok.

nabobalis commented 2 years ago

changed this line in version 13 of the diff

nabobalis commented 2 years ago

resolved all threads

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

added 1 commit

Compare with previous version

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 14, 2022, 07:42

resolved all threads

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 14, 2022, 07:42

approved this merge request

nabobalis commented 2 years ago

enabled an automatic merge when the pipeline for e3a41ffb0c66723049898810885500ec904e4bbb succeeds

nabobalis commented 2 years ago

canceled the automatic merge

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Jan 14, 2022, 07:51

enabled an automatic merge when the pipeline for e3a41ffb0c66723049898810885500ec904e4bbb succeeds

nabobalis commented 2 years ago

canceled the automatic merge

nabobalis commented 2 years ago

mentioned in commit 079b71fe04def61f99963a2647a07e1f46d8bf88

nabobalis commented 2 years ago

picked the changes into the branch cherry-pick-079b71fe with commit 0c49bf44be61a297cce35197dad485e731b9d8da

nabobalis commented 2 years ago

mentioned in commit 0c49bf44be61a297cce35197dad485e731b9d8da