bluesky / event-model

data model for event-based data collection and analysis
https://blueskyproject.io/event-model
BSD 3-Clause "New" or "Revised" License
13 stars 30 forks source link

Accept any array-like. #204

Closed danielballan closed 3 years ago

danielballan commented 3 years ago

Description

Accept anything that implements __array__ as an array-like.

Motivation and Context

Specifically I want to be sure that we accept dask arrays when building things with RunBuilder, but this seems useful in general.

How Has This Been Tested?

~Needs a test~ Wrote test, confirmed that it fails without the new fix.