hrbonz / python-aqi

A library to convert between AQI value and pollutant concentration (µg/m³ or ppm)
BSD 3-Clause "New" or "Revised" License
60 stars 28 forks source link

Potential improvement of piecewise #24

Open chujunlu opened 3 years ago

chujunlu commented 3 years ago

For our reference: numpy's piecewise implementation https://github.com/numpy/numpy/blob/v1.20.0/numpy/lib/function_base.py#L500-L618