Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Two Counterbalance routines with the same name can be added / Conditions file is not updated in Counterbalance routine #6369

Open
hsogo opened this issue Apr 12, 2024 · 0 comments
Labels
🐞 bug Issue describes a bug (crash or error) or undefined behavior.

Comments

@hsogo
Copy link
Contributor

hsogo commented Apr 12, 2024

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.

  1. Adding a new Counterbalance routine to an experiment which already has Counterbalance routine, two tabs with the same name appear in the Routine pane.
  2. Updating the name of Conditions file using "File" button is not effective until further changes are made to the Counterbalance routine.

Expected Behaviour

  1. Two property tabs with the same name should not be created.
  2. Changes in the name of Conditions file using "File" button should be effective immediately.

Steps to Reproduce

Bug 1

  1. Create a new experiment, put a counterbalance routine, insert the routine to flow and save the experiment.
  2. Close and reopen the experiment, and try to add a counterbalance routine.
movie1.mp4

Bug 2

  1. 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.
  2. 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.
  3. 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.
  4. 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.
movie2.mp4

Additional context

No response

@hsogo hsogo added the 🐞 bug Issue describes a bug (crash or error) or undefined behavior. label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Issue describes a bug (crash or error) or undefined behavior.
Projects
None yet
Development

No branches or pull requests

1 participant