@@ -40,7 +40,10 @@ def __len__(self):
4040
4141 @property
4242 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+ '''
4447 return self .CheckForError (self ._lib .PDElements_Get_FaultRate ())
4548
4649 @FaultRate .setter
@@ -49,17 +52,27 @@ def FaultRate(self, Value):
4952
5053 @property
5154 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+ '''
5359 return self .CheckForError (self ._lib .PDElements_Get_First ())
5460
5561 @property
5662 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+ '''
5867 return self .CheckForError (self ._lib .PDElements_Get_FromTerminal ())
5968
6069 @property
6170 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+ '''
6376 return self .CheckForError (self ._lib .PDElements_Get_IsShunt ()) != 0
6477
6578 @property
@@ -69,7 +82,10 @@ def Lambda(self):
6982
7083 @property
7184 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+ '''
7389 return self ._get_string (self .CheckForError (self ._lib .PDElements_Get_Name ()))
7490
7591 @Name .setter
@@ -81,7 +97,10 @@ def Name(self, Value):
8197
8298 @property
8399 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+ '''
85104 return self .CheckForError (self ._lib .PDElements_Get_Next ())
86105
87106 @property
@@ -91,7 +110,10 @@ def Numcustomers(self):
91110
92111 @property
93112 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+ '''
95117 return self .CheckForError (self ._lib .PDElements_Get_ParentPDElement ())
96118
97119 @property
@@ -142,34 +164,55 @@ def AllNames(self):
142164 '''
143165 return self .CheckForError (self ._get_string_array (self ._lib .PDElements_Get_AllNames ))
144166
145- @property
146- def AllMaxCurrents (self ):
167+ def AllMaxCurrents (self , AllNodes = False ):
147168 '''
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/
149178
150179 (API Extension)
151180 '''
152- self .CheckForError (self ._lib .PDElements_Get_AllMaxCurrents_GR ())
181+ self .CheckForError (self ._lib .PDElements_Get_AllMaxCurrents_GR (AllNodes ))
153182 return self ._get_float64_gr_array ()
154183
155- @property
156- def AllPctNorm (self ):
184+ def AllPctNorm (self , AllNodes = False ):
157185 '''
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/
159195
160196 (API Extension)
161197 '''
162- self .CheckForError (self ._lib .PDElements_Get_AllPctNorm_GR ())
198+ self .CheckForError (self ._lib .PDElements_Get_AllPctNorm_GR (AllNodes ))
163199 return self ._get_float64_gr_array ()
164200
165- @property
166- def AllPctEmerg (self ):
201+ def AllPctEmerg (self , AllNodes = False ):
167202 '''
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/
169212
170213 (API Extension)
171214 '''
172- self .CheckForError (self ._lib .PDElements_Get_AllPctEmerg_GR ())
215+ self .CheckForError (self ._lib .PDElements_Get_AllPctEmerg_GR (AllNodes ))
173216 return self ._get_float64_gr_array ()
174217
175218 @property
0 commit comments