@@ -141,7 +141,10 @@ def __init__(self,
141
141
super (PVSystem , self ).__init__ (** kwargs )
142
142
143
143
def __repr__ (self ):
144
- return 'PVSystem with tilt:' + str (self .surface_tilt ) + ' and azimuth: ' + str (self .surface_azimuth )
144
+ return ('PVSystem with tilt:' + str (self .surface_tilt ) +
145
+ ' and azimuth: ' + str (self .surface_azimuth ) +
146
+ ' with Module: ' + str (self .module ) +
147
+ ' and Inverter: ' + str (self .inverter ))
145
148
146
149
def get_aoi (self , solar_zenith , solar_azimuth ):
147
150
"""Get the angle of incidence on the system.
@@ -439,7 +442,9 @@ def __init__(self, pvsystem=None, location=None, **kwargs):
439
442
440
443
# get and combine attributes from the pvsystem and/or location
441
444
# with the rest of the kwargs
442
-
445
+
446
+ self .location = location
447
+
443
448
if pvsystem is not None :
444
449
pv_dict = pvsystem .__dict__
445
450
else :
@@ -457,7 +462,11 @@ def __init__(self, pvsystem=None, location=None, **kwargs):
457
462
super (LocalizedPVSystem , self ).__init__ (** new_kwargs )
458
463
459
464
def __repr__ (self ):
460
- return 'LocalizedPVSystem'
465
+ return ('LocalizedPVSystem with tilt:' + str (self .surface_tilt ) +
466
+ ' and azimuth: ' + str (self .surface_azimuth ) +
467
+ ' with Module: ' + str (self .module ) +
468
+ ' and Inverter: ' + str (self .inverter ) +
469
+ ' and Location: ' + str (self .location ))
461
470
462
471
463
472
def systemdef (meta , surface_tilt , surface_azimuth , albedo , series_modules ,
0 commit comments