Fix IEC module imports.
This commit is contained in:
@@ -10,7 +10,7 @@ desc: Definitions for IEC 61131 programming paradigms.
|
|||||||
|
|
||||||
from enum import Enum, IntEnum
|
from enum import Enum, IntEnum
|
||||||
|
|
||||||
from pandas import Series
|
from pandas import Series, NA
|
||||||
|
|
||||||
from AuDaGe.audage import AuDaGeFrame
|
from AuDaGe.audage import AuDaGeFrame
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ class DataTypes(IntEnum):
|
|||||||
|
|
||||||
def iec_definitions() -> AuDaGeFrame:
|
def iec_definitions() -> AuDaGeFrame:
|
||||||
"""Generate a DataFrame containing the standard IEC 61131-3 data types."""
|
"""Generate a DataFrame containing the standard IEC 61131-3 data types."""
|
||||||
empty = Series([pd.NA] * len(DataTypes.__members__))
|
empty = Series([NA] * len(DataTypes.__members__))
|
||||||
return AuDaGeFrame({
|
return AuDaGeFrame({
|
||||||
"name": empty,
|
"name": empty,
|
||||||
"parent": empty,
|
"parent": empty,
|
||||||
|
|||||||
Reference in New Issue
Block a user