07-25-2025, 04:16 PM
Hi Mary-Kate,
Thanks for adding us as a collaborator. I was able to take a look, and have identified the issue! Due to commented-out chunks of code, there is an extra comma at the end of your last (un-commented) block ("Flanker_PBlock"). This is line number 23 in the code of your Procedure.
The error message was misleading, as it reports the line number and character position of the error based on the *processed code*, which is different from the line numbers you see because the processed code does not include any comments. We will look into how we might be able to address this in the future, as it is obviously not the most helpful!
Once you fix that, you'll find another error related to the use of nested lists (i.e., [[<list1>], [<list2>]]) in the definition of your trial_templates property for the Flanker_PBlock. The trial_templates property does NOT support nested lists, so that will have to be changed.
It looks like you are trying to create 4 sets of "yoked" trials, with a fixation, blank screen, target trial, and final blank screen. To make this work, you will need to combine the trial templates "Flanker_P_ConJ", "Flanker_P_ConF", "Flanker_P_IncJ", and "Flanker_P_IncF" into a single trial template. See the "response_pairing" property (https://hub.findingfive.com/study-gramma...se_pairing) to learn how to do this in a way that will allow you to map the correct responses onto each stimulus within that combined trial template.
Once you've done that, you can simplify the trial_templates property to be a simple list of 4 trial templates, and make use of the "alternate_random" ordering property (https://hub.findingfive.com/study-gramma...tabbed_2_6) to create the desired effect. Note that this property requires that all templates be the same length, so you will need to make sure that your "Flanker_Fixation" and "Blank_Screen" templates repeat their stimuli 16 times to match the length of the combined trial template.
Best of luck with this, and thank you for reporting this! We are always keen to improve our platform and the experience for researchers.
If you have any further questions, please let us know!
Cheers,
Thanks for adding us as a collaborator. I was able to take a look, and have identified the issue! Due to commented-out chunks of code, there is an extra comma at the end of your last (un-commented) block ("Flanker_PBlock"). This is line number 23 in the code of your Procedure.
The error message was misleading, as it reports the line number and character position of the error based on the *processed code*, which is different from the line numbers you see because the processed code does not include any comments. We will look into how we might be able to address this in the future, as it is obviously not the most helpful!
Once you fix that, you'll find another error related to the use of nested lists (i.e., [[<list1>], [<list2>]]) in the definition of your trial_templates property for the Flanker_PBlock. The trial_templates property does NOT support nested lists, so that will have to be changed.
It looks like you are trying to create 4 sets of "yoked" trials, with a fixation, blank screen, target trial, and final blank screen. To make this work, you will need to combine the trial templates "Flanker_P_ConJ", "Flanker_P_ConF", "Flanker_P_IncJ", and "Flanker_P_IncF" into a single trial template. See the "response_pairing" property (https://hub.findingfive.com/study-gramma...se_pairing) to learn how to do this in a way that will allow you to map the correct responses onto each stimulus within that combined trial template.
Once you've done that, you can simplify the trial_templates property to be a simple list of 4 trial templates, and make use of the "alternate_random" ordering property (https://hub.findingfive.com/study-gramma...tabbed_2_6) to create the desired effect. Note that this property requires that all templates be the same length, so you will need to make sure that your "Flanker_Fixation" and "Blank_Screen" templates repeat their stimuli 16 times to match the length of the combined trial template.
Best of luck with this, and thank you for reporting this! We are always keen to improve our platform and the experience for researchers.
If you have any further questions, please let us know!
Cheers,
Noah Nelson
VP of Product @ FindingFive
VP of Product @ FindingFive