Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented YukonEnergyClient #164

Merged
merged 20 commits into from
Oct 30, 2017
Merged

Conversation

r24mille
Copy link
Contributor

@r24mille r24mille commented Oct 15, 2017

This implementation adds the YUKON balancing authority. Supported data includes:

  • get_load(...) up to 24 hours in the past through the start of the current hour.
  • get_generation(...) up to 24 hours in the past through the start of the current hour.
  • get_trade(...) which will split the requested time range up into hours and always return zero. Yukon Energy is an isolated grid.

Closes #128.

Upper and lower datetime ranges for load and generation data are handled
with meaningful logging at WARN level.
This type of functionality, reading static response content from the
fixtures directory is done in many unit tests in some form or another.
I refactored test_pei.py to use it and intend on using it with
test_nspower.py for NSPowerClient.

We can gradually refactor other classes to make use of the centralized
function as well.
It's a little bit copy/paste but the two implementations should start to
diverge from here.
@r24mille r24mille changed the title Implemented YukonEnergyClient (#128) Implemented YukonEnergyClient Oct 15, 2017
@coveralls
Copy link

coveralls commented Oct 15, 2017

Coverage Status

Coverage increased (+2.4%) to 53.025% when pulling 10fa9c0 on r24mille:128_yukon_energy into 73603f0 on WattTime:master.

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage increased (+2.4%) to 53.025% when pulling 6e60e1b on r24mille:128_yukon_energy into 73603f0 on WattTime:master.

@coveralls
Copy link

coveralls commented Oct 19, 2017

Coverage Status

Coverage increased (+1.8%) to 54.281% when pulling 384c517 on r24mille:128_yukon_energy into 946698a on WattTime:master.

@coveralls
Copy link

coveralls commented Oct 20, 2017

Coverage Status

Coverage increased (+1.8%) to 56.341% when pulling 9e2fb19 on r24mille:128_yukon_energy into fa7524c on WattTime:master.

@coveralls
Copy link

coveralls commented Oct 20, 2017

Coverage Status

Coverage increased (+1.8%) to 56.341% when pulling 9e2fb19 on r24mille:128_yukon_energy into fa7524c on WattTime:master.

@ajdonnison ajdonnison merged commit 52a8b55 into WattTime:master Oct 30, 2017
@r24mille r24mille deleted the 128_yukon_energy branch October 31, 2017 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants