Skip to content

Commit f1e6a37

Browse files
committed
Add initial _columns lists. To be reviewed.
Closes #27
1 parent e390a3f commit f1e6a37

58 files changed

Lines changed: 1086 additions & 2 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/IActiveClass.py

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

12+
_columns = [
13+
'ActiveClassName',
14+
'ActiveClassParent',
15+
'Name',
16+
'NumElements',
17+
]
18+
1219
@property
1320
def ActiveClassName(self):
1421
'''(read-only) Returns name of active class.'''

dss/dss_capi_gr/IBus.py

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

99
class IBus(Base):
1010
__slots__ = []
11+
12+
_columns = [
13+
'Name',
14+
'NumNodes',
15+
'Nodes',
16+
'Coorddefined',
17+
'CplxSeqVoltages',
18+
'Cust_Duration',
19+
'Cust_Interrupts',
20+
'Cust_Interrupts',
21+
'Distance',
22+
'Int_Duration',
23+
'Isc',
24+
'Lambda',
25+
'N_Customers',
26+
'N_interrupts',
27+
'SectionID',
28+
'SeqVoltages',
29+
'TotalMiles',
30+
'VLL',
31+
'VMagAngle',
32+
'Voc',
33+
'Voltages',
34+
'YscMatrix'
35+
'Zsc0',
36+
'Zsc1',
37+
'ZscMatrix',
38+
'kVBase',
39+
'puVLL',
40+
'puVmagAngle',
41+
'puVoltages',
42+
'x',
43+
'y',
44+
]
1145

1246
def GetUniqueNodeNumber(self, StartNumber):
1347
return self._lib.Bus_GetUniqueNodeNumber(StartNumber)

dss/dss_capi_gr/ICNData.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@ class ICNData(Iterable):
1111

1212
__slots__ = []
1313

14+
_columns = [
15+
'Name',
16+
'idx',
17+
'NormAmps',
18+
'EmergAmps',
19+
'Rdc',
20+
'Rac',
21+
'ResistanceUnits',
22+
'GMRac',
23+
'GMRUnits',
24+
'Radius',
25+
'Diameter',
26+
'RadiusUnits',
27+
'EpsR',
28+
'InsLayer',
29+
'DiaIns',
30+
'DiaCable',
31+
'DiaStrand',
32+
'RStrand',
33+
'k',
34+
]
35+
1436
@property
1537
def EmergAmps(self):
1638
'''Emergency ampere rating'''

dss/dss_capi_gr/ICapControls.py

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

12+
_columns = [
13+
'Name',
14+
'idx',
15+
'Capacitor',
16+
'CTratio',
17+
'PTratio',
18+
'DeadTime',
19+
'Delay',
20+
'DelayOff',
21+
'Vmin',
22+
'Vmax',
23+
'UseVoltOverride',
24+
]
25+
1226
def Reset(self):
1327
self._lib.CapControls_Reset()
1428

dss/dss_capi_gr/ICapacitors.py

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

12+
_columns = [
13+
'Name',
14+
'idx',
15+
'kV',
16+
'AvailableSteps',
17+
'IsDelta',
18+
'States',
19+
'kvar',
20+
]
21+
1222
def AddStep(self):
1323
return self._lib.Capacitors_AddStep() != 0
1424

dss/dss_capi_gr/ICircuit.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,32 @@ class ICircuit(Base):
9191
'Parallel',
9292
'ReduceCkt'
9393
]
94-
94+
95+
_columns = [
96+
'Name',
97+
'NumBuses',
98+
'NumNodes',
99+
'NumCktElements',
100+
101+
'AllBusDistances',
102+
'AllBusNames',
103+
'AllBusVmag',
104+
'AllBusVmagPu',
105+
'AllBusVolts',
106+
107+
'AllNodeDistances',
108+
'AllElementNames',
109+
'YNodeOrder',
110+
'YNodeVarray',
111+
'YCurrents',
112+
113+
'AllElementLosses',
114+
'LineLosses',
115+
'Losses',
116+
'SubstationLosses',
117+
'TotalPower',
118+
]
119+
95120
def __init__(self, api_util):
96121
self.Buses = IBus(api_util)
97122
self.CktElements = ICktElement(api_util)

dss/dss_capi_gr/ICktElement.py

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

15+
_columns = [
16+
'DisplayName',
17+
'Handle',
18+
'GUID',
19+
'Enabled',
20+
'NumTerminals',
21+
'NumPhases',
22+
'NumConductors',
23+
'NumControls',
24+
'NumProperties',
25+
'BusNames',
26+
'NormalAmps',
27+
'EmergAmps',
28+
'HasVoltControl',
29+
'HasSwitchControl',
30+
'HasOCPDevice',
31+
'OCPDevType',
32+
'OCPDevIndex',
33+
'IsIsolated',
34+
'EnergyMeter',
35+
36+
'Yprim',
37+
'NodeOrder',
38+
'Voltages',
39+
'VoltagesMagAng',
40+
'SeqVoltages',
41+
'CplxSeqVoltages',
42+
'Powers',
43+
'SeqPowers',
44+
'Currents',
45+
'CurrentsMagAng',
46+
'SeqCurrents',
47+
'CplxSeqCurrents',
48+
'Residuals',
49+
'PhaseLosses',
50+
]
51+
52+
1553
def __init__(self, api_util):
1654
self.Properties = IDSSProperty(api_util)
1755
Base.__init__(self, api_util)

dss/dss_capi_gr/IFuses.py

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

12+
_columns = [
13+
'Name',
14+
'idx',
15+
'MonitoredObj',
16+
'Delay',
17+
'IsBlown',
18+
'TCCcurve',
19+
'RatedCurrent',
20+
'SwitchedObj',
21+
'SwitchedTerm',
22+
]
23+
24+
1225
def Close(self):
1326
self._lib.Fuses_Close()
1427

dss/dss_capi_gr/IGenerators.py

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

12+
_columns = [
13+
'Name',
14+
'idx',
15+
'ForcedON',
16+
'Model',
17+
'Phases',
18+
'PF',
19+
'kVArated',
20+
'kV',
21+
'kW',
22+
'kvar',
23+
'Vminpu',
24+
'Vmaxpu',
25+
'RegisterNames',
26+
'RegisterValues',
27+
]
28+
1229
@property
1330
def ForcedON(self):
1431
'''Indicates whether the generator is forced ON regardles of other dispatch criteria.'''

dss/dss_capi_gr/IISources.py

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

12+
_columns = [
13+
'Name',
14+
'idx',
15+
'Amps',
16+
'AngleDeg',
17+
'Frequency',
18+
]
19+
1220
@property
1321
def Amps(self):
1422
'''Magnitude of the ISource in amps'''

0 commit comments

Comments
 (0)