chestm007 / linux_thermaltake_riing

Python driver and daemon to control thermaltake Riing fans and pumps
GNU General Public License v2.0
61 stars 25 forks source link

Simplify curve model by directly using numpy.interp. #15

Closed nicoulaj closed 5 years ago

nicoulaj commented 5 years ago

numpy.interp does exactly what we need, so dependency on scipy+matplotlib is unneeded.

Also made curve validation a little stricter (only allow monotonically increasing curve, defined in the right order).