Skip to content

Commit 0cc66dc

Browse files
EM column might not be present
1 parent c1e0ec8 commit 0cc66dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pypsdm/models/input/participant/participant.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ def em(self) -> Series:
2424
"""
2525
Returns: The ems to which the entities are connected.
2626
"""
27-
return self.data["em"]
27+
# EM column might not be present
28+
if "em" in self.data:
29+
return self.data["em"]
30+
else:
31+
return Series()
2832

2933
@property
3034
def q_characteristic(self):

0 commit comments

Comments
 (0)