-
-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
Codecov Report
@@ Coverage Diff @@
## master #50 +/- ##
==========================================
+ Coverage 85.75% 87.05% +1.29%
==========================================
Files 17 17
Lines 344 363 +19
==========================================
+ Hits 295 316 +21
+ Misses 49 47 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
Love the features! I've played a bit with them on some of my codes and everything seems fine.
Very minor gripe about the isnothing
overload however, which I find confusing. I would expect that behaviour with a broadcasted call like isnothing.(layer)
, not isnothing(layer)
, since it's operating on the grid elements. Right now it doesn't mimic the same calls made on an Array
, as we've done elsewhere. Since it's a bit counterintuitive, I'd just use the one-line call on the grid directly.
Also, you could want to check if a layer is an element of type nothing
when calling isnothing(layer)
, as you can with any other element. But I admit that's not very likely.
So I'm not really opposed to it, I just find it a bit inconsistent and unnecessary.
@gabrieldansereau you might be right - I think we can remove it and use an iterator as suggested by @mkborregaard in #51, to do something with |
What the pull request does
collect
to get the non-nothing
values. (Fixes Add a collect or values method #48)Adds an overload toisnothing
to get the coordinates ofnothing
valueshcat
andvcat
(Fixes Add hcat and vcat #49)similar
method (Fixes Add a new method tosimilar
#47)mask
function to clip a layer using a Boolean layerType of change
Please indicate the relevant option(s)
Checklist
Project.toml
fieldversion
has been updated