Skip to content

Commit 5b73b60

Browse files
committed
- Fixed bug where if named imports rather than * imports were used in a task file the variables did not appear in the GUI configure experiment tab variables table.
1 parent 1d4fcfe commit 5b73b60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gui/configure_experiment_tab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def available_subjects(self, v_name, s_name=None):
597597

598598
def task_changed(self, task):
599599
'''Remove variables that are not defined in the new task.'''
600-
pattern = "[\n\r]v\.(?P<vname>\w+)\s*\="
600+
pattern = "[\n\r\.]v\.(?P<vname>\w+)\s*\="
601601
try:
602602
with open(os.path.join(dirs['tasks'], task+'.py'), "r") as file:
603603
file_content = file.read()

0 commit comments

Comments
 (0)