-
Notifications
You must be signed in to change notification settings - Fork 75
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
TST: Increase Imviz rotation test coverage #2712
TST: Increase Imviz rotation test coverage #2712
Conversation
e57e4b8
to
7d6369f
Compare
@@ -564,7 +564,7 @@ def compute_scale(wcs, fiducial, disp_axis, pscale_ratio=1): | |||
""" | |||
spectral = 'SPECTRAL' in wcs.output_frame.axes_type | |||
|
|||
if spectral and disp_axis is None: | |||
if spectral and disp_axis is None: # pragma: no cover |
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.
NOTE: This was copied from jwst
so if spectral
is probably important there but we do not care here.
7d6369f
to
943b26d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2712 +/- ##
==========================================
+ Coverage 88.07% 88.66% +0.59%
==========================================
Files 108 108
Lines 15883 15886 +3
==========================================
+ Hits 13989 14086 +97
+ Misses 1894 1800 -94 ☔ View full report in Codecov by Sentry. |
# Blink to second image, if we have to. | ||
if self.viewer.top_visible_data_label != "has_wcs_2[SCI,1]": | ||
self.viewer.blink_once() |
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.
does this ever happen (ie is it random)? Maybe just put an assert statement here to ensure that the top layer is as expected?
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.
Because I have multiple test methods, I want to guard against chances when they are run out of order (could be possible if xdist is involved).
2e662ab
to
0f96140
Compare
0f96140
to
3d5e6b1
Compare
fbf8d7f
to
59286c0
Compare
From Brett: I don’t have any idea. My only lead would be to check what the refdata are throughout this test, since that’s the place (
where things are most likely to go wrong in the markers updates during link type change. |
Co-authored-by: Kyle Conroy <kyleconroy@gmail.com>
Add regression test for JDAT-3958 but cannot reproduce the failure.
Co-authored-by: Ricky O'Steen <39831871+rosteen@users.noreply.github.com>
and turn xpass into failure.
but this would fail the test, so catch the failures for now
@kecnry , the fake WCS just does not roundtrip, I don't know what to do about this. The mark does appear "correct" visually when linked by WCS: If you extend the test case, you would see this: >>> sky = wcs_1.pixel_to_world(0, 0) # First loaded data
>>> sky
<SkyCoord (ICRS): (ra, dec) in deg
(337.5202808, -20.83333306)>
>>> viewer.state.reference_data.coords.world_to_pixel(sky) # Default orientation
[-0.25000000137056677, -0.24999999861013933] How do you want to proceed?
Please advise. Thanks! |
5443c5a
to
63b460b
Compare
Ok, since it's already in main, I'd vote for getting the test in marked to fail and open a bug ticket. |
I think one approval is enough. There is no functionality change. Thanks! |
Description
This pull request is a follow-up of #2179 to increase test coverage and prevent future regressions (within reason).
Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.