WattTime / pyiso

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

CAISO Latest=True Bug #105

Open danielbelldev opened 7 years ago

danielbelldev commented 7 years ago

Seems like when trying to call caiso.get_load, caiso,get_lmp and caiso.get_trade with latest=True results in a TypeError.

Should be an easy fix, changed datetime.utcnow() to datetime.utcnow().strftime(self.oasis_request_time_format) and it worked.

Changes should be done on lines 119, 151 and 415 in CAISO if I'm not mistaken.

ndavis6 commented 7 years ago

Hi danielbelldev,

Would you be willing to write a test for that?  Then we can push the

patch and get it into the next build.

Cheers, Nate

On 02/08/2017 06:35 AM, danielbelldev wrote:

Seems like when trying to call caiso.get_load, caiso,get_lmp and caiso.get_trade with latest=True results in a TypeError.

Should be an easy fix, changed datetime.utcnow() to datetime.utcnow().strftime(self.oasis_request_time_format) and it worked.

Changes should be done on lines 119, 151 and 415 in CAISO if I'm not mistaken.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/WattTime/pyiso/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/AIsfGvUPBXihdLFSLE8uGLaLawrfGSsUks5raah_gaJpZM4L6tX0.

-- Nate Davis Chief Financial Officer, WattTime nate@watttime.org | 978-857-4619

danielbelldev commented 7 years ago

Would love to, however, I'm a novice programmer so I'm not sure how I would go about doing that.