You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make Instrument indexable via the na.Indexable mixin (#61)
* Make Instrument indexable via the na.Indexable mixin
AbstractInstrument now inherits named_arrays.Indexable, giving every
instrument a recursive named __getitem__/isel/shape that indexes its fields
(rebuilding dataclasses via dataclasses.replace, so the result is a new
object and cached properties such as `system` are dropped).
A single channel can then be selected generically with
instrument.isel(channel=...) (equivalently instrument[{axis_channel: ...}]),
which extends to any future vectorized selection without a bespoke method
per axis.
Requires named-arrays >= 1.6 (na.Indexable, #180/#181); pin bumped accordingly.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Bumped `codecov-action` from v5 to v7 to fix the coverage upload step.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments