astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- Astropy Core Package Utilities (`astropy.utils`) »
- Masked Values (`astropy.utils.masked`) »
- piecewise

# piecewise

astropy.utils.masked.function_helpers.piecewise(x, condlist, funclist, *args, **kw)

  Evaluate a piecewise-defined function.

  Like `numpy.piecewise` but for masked input array `x`. Any masks in `condlist` are ignored.