-
Notifications
You must be signed in to change notification settings - Fork 49
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
Dithering utils - WIP #735
base: develop
Are you sure you want to change the base?
Conversation
* Added a default pattern_offset of 30 arcminutes * Slight code cleanup
Codecov Report
@@ Coverage Diff @@
## develop #735 +/- ##
==========================================
+ Coverage 80.58% 80.79% +0.2%
==========================================
Files 61 62 +1
Lines 5188 5243 +55
Branches 715 722 +7
==========================================
+ Hits 4181 4236 +55
Misses 818 818
Partials 189 189
Continue to review full report at Codecov.
|
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.
Looks familiar! Made a few picky suggestions to improve docs, readability.
* Adding testing of generated plot (via `pytest-mpl`) * Minor fixes
Note: we might want to move these elsewhere in the future.
@AnthonyHorton I've added the plotting options back although changed slightly. Mostly I'm not using pyplot but instead generating an actual I also simplified it a bit so the only param to the plotting function is the generated positions. This means it does not show the given offsets as part of the legend or title. Since the figure is returned to the user these could be added in after the fact if desired. I've also added testing via |
Note that this is just to make things work. The image should be exactly the same but my feeling is that the mpl backend or something is causing a difference. The normal way to deal with this would be to upload the failed test to some location where you could inspect the images and see why different. Unfortunately the main way to do that is via the travis aretfacts, which don't work for pull requests. So, long story short, I'm not sure this is effectively testing this.
I suspect it's the text or the style that is screwed up so also testing text here.
I've wasted too much time on the dithering plot but did finally get the image upload of the failed images to work. Here's the output (baseline, created, diff). Needless to say I'm pretty frustrated. Note that this has the |
makes the test useless for now (although does coverage of function)
more iterations. 😠
Depends on panoptes#735 * Rearrange to support mulitple types of `Observation`s. * Add a `DitheredObservation` (coming from AstroHuntsman/huntsman-pocs).
This reverts commit a7721e1.
… tested but at least gets coverage
@@ -91,3 +91,5 @@ cache: | |||
- $PANDIR/astrometry/ | |||
after_success: | |||
- bash <(curl -s https://codecov.io/bash) | |||
after_failure: | |||
- bash scripts/testing/failed-images-upload.sh ${POCS}/test_images/ |
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.
@jamessynge when you get a chance I would appreciate your thoughts on this.
These are pulled from https://github.com/AstroHuntsman/huntsman-pocs
Besides some slight code cleanup the only difference is to specify a default
pattern_offset
of 30 arcminutes.I've also removed the plotting options from the function itself.added back in.Note that these are placed in the utils folder and are not yet a part of normal operations.
Part of #732