WattTime / pyiso

Python client libraries for ISO and other power grid data sources.
http://pyiso.readthedocs.org/
Other
237 stars 110 forks source link

Add NBPowerClient implementation of BaseClient to provide data for New Brunswick, Canada #125

Closed r24mille closed 6 years ago

r24mille commented 6 years ago

This pull request adds latest=True support for get_load(...) and get_trade(...) methods using NB Power's System Information page.

Furthermore, get_load(...) supports start_at and end_at arguments, though primarily for forecast data. The furthest that start_at can go back in the past is ~5 minutes with the latest data from the System Information page. The end_at argument fares a bit better, allowing forecast bringing back forecast data up to 4 hours in the future using requests of the form:

http://tso.nbpower.com/reports%20%26%20assessments/load%20forecast/hourly/2017-07-16%2022.csv

The EIA client lists NBSO (amalgamated with NB Power) as a balancing authority, but eia_esod.handle_ba_limitations(...) includes the NBSO in its canada_mexico limitation array. It is essentially not supported. This NBPowerClient adds value by providing a basic level of support for New Brunswick, as proposed in #122.