@@ -40,7 +40,10 @@ def __len__(self):
40
40
41
41
@property
42
42
def FaultRate (self ):
43
- '''Get/Set Number of failures per year. For LINE elements: Number of failures per unit length per year. '''
43
+ '''
44
+ Get/Set Number of failures per year.
45
+ For LINE elements: Number of failures per unit length per year.
46
+ '''
44
47
return self .CheckForError (self ._lib .PDElements_Get_FaultRate ())
45
48
46
49
@FaultRate .setter
@@ -49,17 +52,27 @@ def FaultRate(self, Value):
49
52
50
53
@property
51
54
def First (self ):
52
- '''(read-only) Set the first enabled PD element to be the active element. Returns 0 if none found.'''
55
+ '''
56
+ (read-only) Set the first enabled PD element to be the active element.
57
+ Returns 0 if none found.
58
+ '''
53
59
return self .CheckForError (self ._lib .PDElements_Get_First ())
54
60
55
61
@property
56
62
def FromTerminal (self ):
57
- '''(read-only) Number of the terminal of active PD element that is on the "from" side. This is set after the meter zone is determined.'''
63
+ '''
64
+ (read-only) Number of the terminal of active PD element that is on the "from"
65
+ side. This is set after the meter zone is determined.
66
+ '''
58
67
return self .CheckForError (self ._lib .PDElements_Get_FromTerminal ())
59
68
60
69
@property
61
70
def IsShunt (self ):
62
- '''(read-only) Boolean indicating of PD element should be treated as a shunt element rather than a series element. Applies to Capacitor and Reactor elements in particular.'''
71
+ '''
72
+ (read-only) Boolean indicating of PD element should be treated as a shunt
73
+ element rather than a series element. Applies to Capacitor and Reactor
74
+ elements in particular.
75
+ '''
63
76
return self .CheckForError (self ._lib .PDElements_Get_IsShunt ()) != 0
64
77
65
78
@property
@@ -69,7 +82,10 @@ def Lambda(self):
69
82
70
83
@property
71
84
def Name (self ):
72
- '''Get/Set name of active PD Element. Returns null string if active element is not PDElement type.'''
85
+ '''
86
+ Get/Set name of active PD Element. Returns null string if active element
87
+ is not PDElement type.
88
+ '''
73
89
return self ._get_string (self .CheckForError (self ._lib .PDElements_Get_Name ()))
74
90
75
91
@Name .setter
@@ -81,7 +97,10 @@ def Name(self, Value):
81
97
82
98
@property
83
99
def Next (self ):
84
- '''(read-only) Advance to the next PD element in the circuit. Enabled elements only. Returns 0 when no more elements.'''
100
+ '''
101
+ (read-only) Advance to the next PD element in the circuit. Enabled elements
102
+ only. Returns 0 when no more elements.
103
+ '''
85
104
return self .CheckForError (self ._lib .PDElements_Get_Next ())
86
105
87
106
@property
@@ -91,7 +110,10 @@ def Numcustomers(self):
91
110
92
111
@property
93
112
def ParentPDElement (self ):
94
- '''(read-only) Sets the parent PD element to be the active circuit element. Returns 0 if no more elements upline.'''
113
+ '''
114
+ (read-only) Sets the parent PD element to be the active circuit element.
115
+ Returns 0 if no more elements upline.
116
+ '''
95
117
return self .CheckForError (self ._lib .PDElements_Get_ParentPDElement ())
96
118
97
119
@property
@@ -142,34 +164,55 @@ def AllNames(self):
142
164
'''
143
165
return self .CheckForError (self ._get_string_array (self ._lib .PDElements_Get_AllNames ))
144
166
145
- @property
146
- def AllMaxCurrents (self ):
167
+ def AllMaxCurrents (self , AllNodes = False ):
147
168
'''
148
- Array of doubles with the maximum current across the conductors, for each PD element.
169
+ Array of doubles with the maximum current across the conductors, for each PD
170
+ element.
171
+
172
+ By default, only the *first terminal* is used for the maximum current, matching
173
+ the behavior of the "export capacity" command. Pass `AllNodes=True` to
174
+ force the analysis to all terminals.
175
+
176
+ See also:
177
+ https://sourceforge.net/p/electricdss/discussion/beginners/thread/da5b93ca/
149
178
150
179
(API Extension)
151
180
'''
152
- self .CheckForError (self ._lib .PDElements_Get_AllMaxCurrents_GR ())
181
+ self .CheckForError (self ._lib .PDElements_Get_AllMaxCurrents_GR (AllNodes ))
153
182
return self ._get_float64_gr_array ()
154
183
155
- @property
156
- def AllPctNorm (self ):
184
+ def AllPctNorm (self , AllNodes = False ):
157
185
'''
158
- Array of doubles with the maximum current across the conductors as a percentage of the Normal Ampere Rating, for each PD element.
186
+ Array of doubles with the maximum current across the conductors as a percentage
187
+ of the Normal Ampere Rating, for each PD element.
188
+
189
+ By default, only the *first terminal* is used for the maximum current, matching
190
+ the behavior of the "export capacity" command. Pass `AllNodes=True` to
191
+ force the analysis to all terminals.
192
+
193
+ See also:
194
+ https://sourceforge.net/p/electricdss/discussion/beginners/thread/da5b93ca/
159
195
160
196
(API Extension)
161
197
'''
162
- self .CheckForError (self ._lib .PDElements_Get_AllPctNorm_GR ())
198
+ self .CheckForError (self ._lib .PDElements_Get_AllPctNorm_GR (AllNodes ))
163
199
return self ._get_float64_gr_array ()
164
200
165
- @property
166
- def AllPctEmerg (self ):
201
+ def AllPctEmerg (self , AllNodes = False ):
167
202
'''
168
- Array of doubles with the maximum current across the conductors as a percentage of the Emergency Ampere Rating, for each PD element.
203
+ Array of doubles with the maximum current across the conductors as a percentage
204
+ of the Emergency Ampere Rating, for each PD element.
205
+
206
+ By default, only the *first terminal* is used for the maximum current, matching
207
+ the behavior of the "export capacity" command. Pass `AllNodes=True` to
208
+ force the analysis to all terminals.
209
+
210
+ See also:
211
+ https://sourceforge.net/p/electricdss/discussion/beginners/thread/da5b93ca/
169
212
170
213
(API Extension)
171
214
'''
172
- self .CheckForError (self ._lib .PDElements_Get_AllPctEmerg_GR ())
215
+ self .CheckForError (self ._lib .PDElements_Get_AllPctEmerg_GR (AllNodes ))
173
216
return self ._get_float64_gr_array ()
174
217
175
218
@property
0 commit comments