impactlab / eemeter

‼️ MOVED TO https://github.com/openeemeter/eemeter - Core computation engine for the Open Energy Efficiency Meter
https://eemeter.readthedocs.io/
MIT License
25 stars 13 forks source link

if interval_daily_temps in model is not numpy array, it causes an error #49

Closed philngo closed 9 years ago

philngo commented 9 years ago

E.g.

 File "/opt/python/run/venv/src/eemeter/eemeter/models/temperature_sensitivity.py", line 103, in compute_usage_estimates
    total_usage = np.sum(cooling + heating) + base_consumption*interval_daily_temps.shape[0]
 AttributeError: 'list' object has no attribute 'shape'
philngo commented 9 years ago

c5e2088de7dcdcb68fc46c8c54f3da61ddbc4d4a fixes this.