Closed rafaqz closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
40acc86
) 88.03% compared to head (ee68aa7
) 87.70%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR adds an
AutoVal
object pretty much likeAutoLookup
but isn't anAbstractArray
.The point of this is for easy syntax - to let a function manipulate the contents of a
Dimension
at some stage after its construction, with the option to provide keywords at the time of construction. Otherwise separate input of keywords for each dimension is needed, which is clunky.For example: Rasters.jl will use this in dimension value detection from file names. You can do
and it knows to pass those keywords to the lookup after parsing strings from the filenames for each slice to
Int
.I'm sure it will be useful for other similar use cases.