Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #75 +/- ##
===========================================
+ Coverage 21.73% 54.33% +32.59%
===========================================
Files 11 10 -1
Lines 1127 1119 -8
===========================================
+ Hits 245 608 +363
+ Misses 882 511 -371 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4dc06a3 to
cb50519
Compare
|
Ok, I think this is in a pretty ok place now for a review. I've updated the parent comment with a brief summary. Happy to make any changes! |
| refdims::Union{Tuple,NamedTuple}=(), | ||
| header::FITSHeader=emptyheader(), | ||
| wcs::Union{WCSTransform,Nothing}=nothing; | ||
| wcs::Union{Vector{WCSTransform},Nothing}=nothing; |
There was a problem hiding this comment.
What's the significance of this change? Also the docstring says it takes a WCSTransform but I only see methods for Vector{WCSTransform}, am I missing something?
There was a problem hiding this comment.
That was a little weird to me too. When I got to updating the plots tests, I needed a way to build an AstroImage(data, [wcs]) object, and updating the signature to Vector{WCSTransform} looked to have the desired effect for this while touching the least amount of pre-existing machinery.
I don't do a lot of work with WCS, but I guess that folks want to have the option of passing multiple WCSTransform objects, so this is what I went with. I updated the docstrings to make this more consistent, and added a convenience constructor so AstroImage(data, wcs) will work too. Does this seem alright to you? 442b68b
There was a problem hiding this comment.
Yeah, AstroImage(data::AbstractArray, wcs::WCSTransform) = AstroImage(data, [wcs]) was pretty much what I was thinking might be needed, thanks
…venience constructor
|
Thanks! I think it was just a random data download timeout. Docs are building locally now, will work on getting CI builds working next. I added a couple things that I missed earlier:
|
|
Ok, am hitting Update: Parentheses! |
Follow-up from #72
What's changed
AstroImageconstructor so thatAstroImage(data, [wcs])will work417fd54. Needed for plots tests.
To-do