Closed JrtPec closed 8 years ago
Nice, check ik morgen!
On Wed, Oct 21, 2015 at 5:51 PM, Jan Pecinovsky notifications@github.com wrote:
Static heating and cooling degree days were removed and replaced by boolean flags and arguments to set your own base temperatures. Default
turns on only heating degree days on a base temperature of 16.5°C
You can view, comment on, or merge this pull request online at:
https://github.com/opengridcc/opengrid/pull/68 Commit Summary
- optional and variable heating and cooling degree days
File Changes
- M library/forecastwrapper.py https://github.com/opengridcc/opengrid/pull/68/files#diff-0 (55)
- M scripts/Demo_Forecast.io.ipynb https://github.com/opengridcc/opengrid/pull/68/files#diff-1 (43)
Patch Links:
- https://github.com/opengridcc/opengrid/pull/68.patch
- https://github.com/opengridcc/opengrid/pull/68.diff
— Reply to this email directly or view it on GitHub https://github.com/opengridcc/opengrid/pull/68.
Hi @JrtPec Great improvements. I did one big change, that's very important after all: never pass functions to be evaluated as default arguments. See also http://lgiordani.com/blog/2015/02/11/default-arguments-in-python/#.VilR85Oli1E (section Default arguments evaluation). This is really a python-quirk that you have to know. I always pass None as defaults (no empty modifiable objects, that's also dangerous).
@saroele somehow I have the feeling I've read this article before... anyhow, thanks for the corrections!
Static heating and cooling degree days were removed and replaced by boolean flags and arguments to set your own base temperatures. Default turns on only heating degree days on a base temperature of 16.5°C