Skip to content

Commit 4151fe8

Browse files
committed
CktElement: import enum OCPDevType to OCPDevTypeEnum to avoid confusion
The two names were unique in scope, just a bit confusing.
1 parent 717045c commit 4151fe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dss/ICktElement.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .IDSSProperty import IDSSProperty
1010
from ._types import Float64Array, Int32Array, Float64ArrayOrComplexArray, Float64ArrayOrSimpleComplex
1111
from typing import List, AnyStr, Tuple
12-
from .enums import OCPDevType
12+
from .enums import OCPDevType as OCPDevTypeEnum
1313

1414
class ICktElement(Base):
1515
__slots__ = [
@@ -293,9 +293,9 @@ def OCPDevIndex(self) -> int:
293293
return self.CheckForError(self._lib.CktElement_Get_OCPDevIndex())
294294

295295
@property
296-
def OCPDevType(self) -> OCPDevType:
296+
def OCPDevType(self) -> OCPDevTypeEnum:
297297
'''0=None; 1=Fuse; 2=Recloser; 3=Relay; Type of OCP controller device'''
298-
return OCPDevType(self.CheckForError(self._lib.CktElement_Get_OCPDevType()))
298+
return OCPDevTypeEnum(self.CheckForError(self._lib.CktElement_Get_OCPDevType()))
299299

300300
@property
301301
def PhaseLosses(self) -> Float64ArrayOrComplexArray:

0 commit comments

Comments
 (0)