Closed mdallaire closed 2 years ago
Did you use the default hydro.py included ?
If you did, there is a hardcoded date (I changed it with more examples and more explicit output in the latest version)
What I think you executed : print("\n\nPEAK EVENTS AS OF 2022-01-04 10am") print (json.dumps(s.getWinterCreditEvents(reference_datetime='2022-01-04 10:00:00'), indent=True))
What you probably should execute : print("\n\nPEAK EVENTS AS OF TODAY") print (json.dumps(s.getWinterCreditEvents(), indent=True))
Hope that address your issue ?
Haha that's it, I just ran the file you provided, that's why.
There is a fresh credit period coming up tomorrow so I ran to script to see the output and it looks like the last period (2022-01-04) shows under the "future" section and also under "past_winters"