Skip to content

Commit be1bb4f

Browse files
committed
Expose the new functions from DSS C-API 0.10.5.
1 parent 4d375c5 commit be1bb4f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

dss/dss_capi_gr/IActiveClass.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,8 @@ def Next(self):
5454
def NumElements(self):
5555
'''(read-only) Number of elements in this class. Same as Count property.'''
5656
return self._lib.ActiveClass_Get_NumElements()
57+
58+
@property
59+
def ActiveClassParent(self):
60+
'''Get the name of the parent class of the active class'''
61+
return self._get_string(self._lib.ActiveClass_Get_ActiveClassParent())

dss/dss_capi_gr/IPVSystems.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,24 @@ def Tyearly(self, Value):
184184

185185
self._lib.PVSystems_Set_Tyearly(Value)
186186
self.CheckForError()
187+
188+
@property
189+
def IrradianceNow(self):
190+
'''
191+
Returns the current irradiance value for the active PVSystem. Use it to
192+
know what's the current irradiance value for the PV during a simulation.
193+
'''
194+
self._lib.PVSystems_Get_IrradianceNow()
195+
196+
@property
197+
def Pmpp(self):
198+
'''
199+
Gets/sets the rated max power of the PV array for 1.0 kW/sq-m irradiance
200+
and a user-selected array temperature of the active PVSystem.
201+
'''
202+
self._lib.PVSystems_Get_Pmpp()
203+
204+
@Pmpp.setter
205+
def Pmpp(self, Value):
206+
self._lib.PVSystems_Set_Pmpp(Value)
207+
self.CheckForError()

0 commit comments

Comments
 (0)