Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions preciceprofiling/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ def toDataFrame(self, participant=None, event=None):

def toExportDataFrame(self, unit):
dataFields = self.allDataFields()

for dataField in dataFields:
assert not contains(
["participant", "rank", "size", "event", "timestamp", "duration"],
dataField,
), (
f"Event data must not be named '{dataField}', because it collides with a built-in name"
)

schema = [
("participant", pl.Utf8),
("rank", pl.Int32),
Expand Down
Loading