WattTime / pyiso

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

nyiso parse_genmix fails with KeyError #180

Closed systemcatch closed 7 years ago

systemcatch commented 7 years ago

See here for background information. It looks like the parse_genmix method in nyiso.py is failing with a KeyError on https://github.com/WattTime/pyiso/blob/master/pyiso/nyiso.py#L271.

Taking a look at the csv data it seems like one of the column headers has been renamed hence the error.

r24mille commented 7 years ago

Hi @systemcatch, thanks for the bug report. I noticed that you also forked pyiso. Were you planning on working through this bug and opening a pull request? Otherwise, I may be able to dig into this bug in the next few days.

Also, great to see someone from electricitymap pop in, cheers!

systemcatch commented 7 years ago

Hey @r24mille I'm pretty busy the next few days so won't have much time to work on it. Cool project you've got here, I'd like to dig into the code more. We're trying to add all the various USA ISO's to the map atm rather than aggregating at the country level.