MoonRaker / pvlib-python

A set of documented functions for simulating the performance of photovoltaic energy systems.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

remove ``location`` from get_query_data #16

Closed wholmgren closed 8 years ago

wholmgren commented 8 years ago

It's unfortunate that the current state of pvlib requires people to use location objects for some functions. I'd rather hack around this problem internally than introduce more functions that use this soon-to-be-removed design pattern (see pvlib/pvlib-python#93). I think that all we need to do is set

self.location = pvlib.location.Location(latitude, longitude)

and everything should work.

MoonRaker commented 8 years ago

I was mainly using the location as a way of handling the time zone which meant the timezone of the location and time had to agree. I will make it internal and make sure that the time zones agree.