psychopy
psychopy copied to clipboard
[Bug]: Two Counterbalance routines with the same name can be added / Conditions file is not updated in Counterbalance routine
PsychoPy Version
2024.1.1
What OS are your PsychoPy running on?
Windows 11
Bug Description
Sorry for reporting two bugs in a single issue, but both concerns with the Counterbalance routine.
- Adding a new Counterbalance routine to an experiment which already has Counterbalance routine, two tabs with the same name appear in the Routine pane.
- Updating the name of Conditions file using "File" button is not effective until further changes are made to the Counterbalance routine.
Expected Behaviour
- Two property tabs with the same name should not be created.
- Changes in the name of Conditions file using "File" button should be effective immediately.
Steps to Reproduce
Bug 1
- Create a new experiment, put a counterbalance routine, insert the routine to flow and save the experiment.
- Close and reopen the experiment, and try to add a counterbalance routine.
https://github.com/psychopy/psychopy/assets/2094930/9a5e1d94-a65e-490d-b412-f984ccab552d
Bug 2
- Create a new experiment, put a counterbalance routine, insert the routine to flow and save the experiment. Prepare a condition file for the counterbalance component.
- Open the property of the counterbalance routine, set "Groups from..." to "Conditions file" and press "Specify file..." button on "Condition" property to select the condition file.
- Click "Write python" button on the Builder ribbon to generate Python script. Then check the parameter of
data.utils.importConditions(). The conditions file name is empty. - Return to the Builder and edit property of the counterbalance routine (editing textboxes, toggling checkboxes, and so on). Then generate Python script and check the parameter of
data.utils.importConditions()again. Now the conditions file name is filled.
https://github.com/psychopy/psychopy/assets/2094930/15b0628f-41d1-4327-85d9-86470bed2e76
Additional context
No response