desihub / speclite

Lightweight utilities for working with spectroscopic data
14 stars 19 forks source link

Add MaskedArray output option to `accumulate` #3

Open dcunning11235 opened 9 years ago

dcunning11235 commented 9 years ago

Currently accumulate always returns ndarray. When a MaskedArray is used for input (for at least one of the data_in parameters?), would be nice to automatically return a MaskedArray. Additionally, it would be nice to have the option to force output to either a MaskedArray or (plain) ndarray.

All together, something like a output_type parameter that could be set to "auto", "masked", or "array".