New 'value_to' method for arrays
This PR introduces a new method for 1- and 2-d arrays, value_to
, designed to extract a value at a given index value, e.g. get the value of a TimeSeries
at a given time.
To make that work, a small set of bug fixes have been made, with improvements to the unit tests. The biggest chance introduced is that the default unit for an Array
is now dimensionless
, not None
.
This fixes #158 (closed).