diff --git a/pvlib/pvsystem.py b/pvlib/pvsystem.py index c909f7f92f..34e2334dfa 100644 --- a/pvlib/pvsystem.py +++ b/pvlib/pvsystem.py @@ -124,7 +124,7 @@ def __init__(self, # needed for tying together Location and PVSystem in LocalizedPVSystem super(PVSystem, self).__init__(**kwargs) - + def get_aoi(self, solar_zenith, solar_azimuth): """Get the angle of incidence on the system. @@ -400,7 +400,7 @@ def __init__(self, pvsystem=None, location=None, **kwargs): # get and combine attributes from the pvsystem and/or location # with the rest of the kwargs - + if pvsystem is not None: pv_dict = pvsystem.__dict__ else: diff --git a/pvlib/tracking.py b/pvlib/tracking.py index 4feee28706..56e46965e8 100644 --- a/pvlib/tracking.py +++ b/pvlib/tracking.py @@ -29,6 +29,10 @@ def __init__(self, axis_tilt=0, axis_azimuth=0, self.gcr = gcr super(SingleAxisTracker, self).__init__(**kwargs) + + def __repr__(self): + return ('SingleAxisTracker with max_angle: ' + + str(self.max_angle) ) def singleaxis(self, apparent_zenith, apparent_azimuth): @@ -142,7 +146,9 @@ def __init__(self, pvsystem=None, location=None, **kwargs): # get and combine attributes from the pvsystem and/or location # with the rest of the kwargs - + + self.location = location + if pvsystem is not None: pv_dict = pvsystem.__dict__ else: @@ -158,6 +164,11 @@ def __init__(self, pvsystem=None, location=None, **kwargs): list(kwargs.items())) super(LocalizedSingleAxisTracker, self).__init__(**new_kwargs) + + def __repr__(self): + return ('Localized' + + super(LocalizedSingleAxisTracker, self).__repr__() + + ' at Location: ' + str(self.location)) def singleaxis(apparent_zenith, apparent_azimuth,