From efce7ecb39f5dd03edf89b429a53db7dd09b4125 Mon Sep 17 00:00:00 2001 From: Philipp Verpoort Date: Mon, 31 Aug 2026 22:49:41 +0200 Subject: [PATCH] Bugfix: start index for example data at 1 --- app/exampledata/ExampleDataHandle.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/exampledata/ExampleDataHandle.py b/app/exampledata/ExampleDataHandle.py index 93dc459..8190e6d 100644 --- a/app/exampledata/ExampleDataHandle.py +++ b/app/exampledata/ExampleDataHandle.py @@ -56,6 +56,11 @@ def import_data(self): df = self._build().astype(str) names = list(df.columns) df.columns = range(len(names)) + # Match `datahandling.DataHandle.read()`, whose rows are numbered + # from 1 -- this is also what's shown as the participant's row ID + # placeholder (manuals dialogue, results table) when no Label + # field is set, so it must agree with a real file import's index. + df.index += 1 self._imported = df self._column_naming = dict(enumerate(names))