From 97cbfee5e29fc362d87970215f51f38d5ca90fb8 Mon Sep 17 00:00:00 2001 From: "m.uowis" <37022952+s3n-w6i@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:20:33 +0100 Subject: [PATCH 1/2] Add debugging --- preciceprofiling/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/preciceprofiling/common.py b/preciceprofiling/common.py index 3d3a473..bea3850 100644 --- a/preciceprofiling/common.py +++ b/preciceprofiling/common.py @@ -148,6 +148,7 @@ def toDataFrame(self, participant=None, event=None): def toExportDataFrame(self, unit): dataFields = self.allDataFields() + print(dataFields) schema = [ ("participant", pl.Utf8), ("rank", pl.Int32), From e8b536476a5ebf6098ac3424c914b2860425fa1c Mon Sep 17 00:00:00 2001 From: s3n-w6i <37022952+s3n-w6i@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:20:24 +0100 Subject: [PATCH 2/2] Add assertion that event data name must not match built-in names Otherwise, this will cause the program to error with a column count mismatch error. This is really hard to understand. --- preciceprofiling/common.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/preciceprofiling/common.py b/preciceprofiling/common.py index bea3850..67a98dd 100644 --- a/preciceprofiling/common.py +++ b/preciceprofiling/common.py @@ -148,7 +148,15 @@ def toDataFrame(self, participant=None, event=None): def toExportDataFrame(self, unit): dataFields = self.allDataFields() - print(dataFields) + + 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),