select¶
-
astropy.utils.masked.function_helpers.
select
(condlist, choicelist, default=0)[source]¶ Return an array drawn from elements in choicelist, depending on conditions.
Like
numpy.select
, with masks inchoicelist
are propagated. Any masks incondlist
are ignored.