Skip to content

Commit 8d5917e

Browse files
committed
PDElements.AllCurrentsMagAng: should not use/try complex here
It's mag/angle, not rect
1 parent e56b741 commit 8d5917e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dss/IPDElements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ def AllCurrents(self) -> Float64ArrayOrComplexArray:
229229
return self._get_complex128_gr_array()
230230

231231
@property
232-
def AllCurrentsMagAng(self) -> Float64ArrayOrComplexArray:
232+
def AllCurrentsMagAng(self) -> Float64Array:
233233
'''
234234
Complex array (magnitude and angle format) of currents for all conductors, all terminals, for each PD element.
235235
236236
(API Extension)
237237
'''
238238
self.CheckForError(self._lib.PDElements_Get_AllCurrentsMagAng_GR())
239-
return self._get_complex128_gr_array()
239+
return self._get_float64_gr_array()
240240

241241
@property
242242
def AllCplxSeqCurrents(self) -> Float64ArrayOrComplexArray:

0 commit comments

Comments
 (0)