Condition for grating

OS (e.g. Win11):
PsychoPy version (v2023.2.1):
Standard Standalone? (y)
What are you trying to achieve?:
Hi, I need help to understand how to create a condition for grating. I have a loop of photos and a csv file with a column that has a marker in it for specific photos that i want to put the grating on them and only them. Thanks ahead!

If your column contains 1 and 0 or True and False then you could set the start of the grating component as a condition using that column name instead of a time.

Thank you!
I keep getting my assigment crash with the following error:
if grating.status == NOT_STARTED and merged_df[“High_go”] ==1 or merged_df[“Low_go”] ==1:
File “C:\Program Files\PsychoPy\lib\site-packages\pandas\core\generic.py”, line 1537, in nonzero
raise ValueError(
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
################ Experiment ended with exit code 1 [pid:18992] #################
1677.3231 INFO Loaded monitor calibration from [‘2023_09_05 16:25’]

Do you have any advice regarding it?
Thanks ahead!

One of the three things in your expression refer to lists rather than single values. I’d recommend using print commands to investigate.

Thank you so much!