WattTime / pyiso

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

Added get_lmp_loc() method to caiso for retrieving geographic locations of lmp nodes. #52

Closed dzimmanck closed 6 years ago

dzimmanck commented 8 years ago

I added a simple method to caiso that grabs LMP location data from CAISO's online interactive price map. This can be used to generate geo maps from the LMP data pulled using pyiso.

aschn commented 8 years ago

This looks great! Can you add these lines to the bottom of tests.test_caiso? Then we'll be good to merge.

    def test_lmp_loc(self):
        c = client_factory('CAISO')
        loc_data = c.get_lmp_loc()

        # one entry for each node
        # expected count is 4238
        self.assertGreater(len(loc_data), 4000)

        # check keys
        self.assertItemsEqual(loc_data[0].keys(),
                              ['node_id', 'latitude', 'longitude', 'area'])
dandxy89 commented 8 years ago

Fails due to Authorization

aschn commented 8 years ago

Hi @dandxy89 ! Did you try adding environment variables for these accounts when you run the tests? http://pyiso.readthedocs.org/en/latest/configuration.html#accounts

dandxy89 commented 8 years ago

The variables are only for New England ISO and European ISO. Not why they would help? :S

ndavis6 commented 7 years ago

@dandxy89 Did you ever figure out the environment variable problem?

dandxy89 commented 7 years ago

Not sure anymore, this was almost a year ago I was working on ISO consumers.