thodson-usgs / ratingcurve

A Python library for fitting streamflow rating curves.
https://thodson-usgs.github.io/ratingcurve/
Other
18 stars 4 forks source link

clip optimization #7

Closed thodson-usgs closed 1 year ago

thodson-usgs commented 2 years ago

clip is typically faster than switch. Can we convert the model to use clip?

thodson-usgs commented 1 year ago

Refactoring the model with clip statements is cleaner but doesn't give appreciably faster performance.