opengridcc / opengrid-dev

Open source building monitoring, analysis and control
Apache License 2.0
26 stars 21 forks source link

sensor.get_data() speedup #174

Open saroele opened 7 years ago

saroele commented 7 years ago

It seems that the get_data() method is slow because of the reindex() calls. They are there to ensure a correct interpolation to get the sensor values precisely at the requested times. Maybe there are better ways to obtain this behaviour

JrtPec commented 7 years ago

I doubt it. What you're looking for is a method that combines resample and interpolate, which I don't think exists.