Skip to content

Commit dbb6c82

Browse files
committed
Docstrings and list of safe fields (_columns) updated; used for the latest ODD.py code generation.
1 parent f1e6a37 commit dbb6c82

44 files changed

Lines changed: 403 additions & 36 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dss/dss_capi_gr/IBus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class IBus(Base):
3131
'VMagAngle',
3232
'Voc',
3333
'Voltages',
34-
'YscMatrix'
34+
'YscMatrix',
3535
'Zsc0',
3636
'Zsc1',
3737
'ZscMatrix',

dss/dss_capi_gr/ICapControls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ class ICapControls(Iterable):
2121
'Vmin',
2222
'Vmax',
2323
'UseVoltOverride',
24+
'Mode',
25+
'MonitoredObj',
26+
'MonitoredTerm',
27+
'OFFSetting',
28+
'ONSetting',
2429
]
2530

2631
def Reset(self):
@@ -81,7 +86,7 @@ def DelayOff(self, Value):
8186
@property
8287
def Mode(self):
8388
'''Type of automatic controller.'''
84-
return self._lib.CapControls_Get_Mode()
89+
return self._lib.CapControls_Get_Mode() #TODO: use enum
8590

8691
@Mode.setter
8792
def Mode(self, Value):

dss/dss_capi_gr/ICapacitors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ICapacitors(Iterable):
1313
'Name',
1414
'idx',
1515
'kV',
16+
'NumSteps',
1617
'AvailableSteps',
1718
'IsDelta',
1819
'States',

dss/dss_capi_gr/ICircuit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class ICircuit(Base):
104104
'AllBusVmagPu',
105105
'AllBusVolts',
106106

107+
'AllNodeNames',
107108
'AllNodeDistances',
108109
'AllElementNames',
109110
'YNodeOrder',
@@ -339,7 +340,7 @@ def NumNodes(self):
339340

340341
@property
341342
def ParentPDElement(self):
342-
'''(read-only) Gets Parent PD element, if any, to be the active circuit element and returns index>0; Returns 0 if it fails or not applicable.'''
343+
'''(read-only) Sets Parent PD element, if any, to be the active circuit element and returns index>0; Returns 0 if it fails or not applicable.'''
343344
return self._lib.Circuit_Get_ParentPDElement()
344345

345346
@property

dss/dss_capi_gr/ICktElement.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class ICktElement(Base):
1313
]
1414

1515
_columns = [
16+
'Name',
1617
'DisplayName',
1718
'Handle',
1819
'GUID',
@@ -22,6 +23,9 @@ class ICktElement(Base):
2223
'NumConductors',
2324
'NumControls',
2425
'NumProperties',
26+
'AllPropertyNames',
27+
'AllVariableValues',
28+
'AllVariableNames',
2529
'BusNames',
2630
'NormalAmps',
2731
'EmergAmps',
@@ -46,6 +50,7 @@ class ICktElement(Base):
4650
'SeqCurrents',
4751
'CplxSeqCurrents',
4852
'Residuals',
53+
'Losses',
4954
'PhaseLosses',
5055
]
5156

dss/dss_capi_gr/ICtrlQueue.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
class ICtrlQueue(Base):
1010
__slots__ = []
11+
12+
_columns = [
13+
'Queue',
14+
'DeviceHandle',
15+
'QueueSize',
16+
'ActionCode',
17+
'NumActions',
18+
]
1119

1220
def ClearActions(self):
1321
self._lib.CtrlQueue_ClearActions()

dss/dss_capi_gr/IDSS.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ class IDSS(Base):
3737
'DSSim_Coms',
3838
'YMatrix',
3939
]
40+
41+
_columns = [
42+
'Version',
43+
'Classes',
44+
'NumUserClasses',
45+
'DataPath',
46+
'NumClasses',
47+
'NumCircuits',
48+
'UserClasses',
49+
'DefaultEditor',
50+
]
4051

4152
def __init__(self, api_util):
4253
self.ActiveCircuit = ICircuit(api_util)
@@ -133,7 +144,8 @@ def AllowForms(self, value):
133144

134145
@property
135146
def AllowEditor(self):
136-
'''Gets/sets whether running the external editor for "Show" is allowed
147+
'''
148+
Gets/sets whether running the external editor for "Show" is allowed
137149
138150
AllowEditor controls whether the external editor is used in commands like "Show".
139151
If you set to 0 (false), the editor is not executed. Note that other side effects,

dss/dss_capi_gr/IDSSElement.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ class IDSSElement(Base):
1212
'Properties'
1313
]
1414

15+
_columns = [
16+
'AllPropertyNames',
17+
'Name',
18+
'NumProperties',
19+
]
20+
1521
def __init__(self, api_util):
1622
self.Properties = IDSSProperty(api_util)
1723
Base.__init__(self, api_util)

dss/dss_capi_gr/IDSSProperty.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
class IDSSProperty(Base):
1010
__slots__ = []
1111

12+
_columns = [
13+
'Description',
14+
'Name',
15+
'Val',
16+
]
17+
1218
@property
1319
def Description(self):
1420
'''(read-only) Description of the property.'''

dss/dss_capi_gr/IDSS_Executive.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
class IDSS_Executive(Base):
1010
__slots__ = []
1111

12+
_columns = [
13+
'NumCommands',
14+
'NumOptions',
15+
]
16+
1217
def Command(self, i):
1318
'''(read-only) Get i-th command'''
1419
return self._get_string(self._lib.DSS_Executive_Get_Command(i))

0 commit comments

Comments
 (0)