[Bug]: Space character in column name of conditions file yields UnboundLocalError
in Builder
#6438
Labels
🐞 bug
Issue describes a bug (crash or error) or undefined behavior.
PsychoPy Version
v2024.1.4
What OS are your PsychoPy running on?
macOS Silicon
Bug Description
Adding a loop with a conditions CSV file that has a space in at least of the column names yields, immediately after selecting the file:
Expected Behaviour
PsychoPy should parse the conditions file
Steps to Reproduce
Create a CSV file with e.g. the following content:
In Builder,
Insert Loop
and select the CSV file forCondition
Additional context
Removing the space (
Col 2
->Col2
) works around the problem.Has been reported on the forum before:
https://discourse.psychopy.org/t/unboundlocalerror-local-variable-triallist-referenced-before-assignment/13472
The text was updated successfully, but these errors were encountered: