From 82f13499e0c519e2bdaef76b52288e0fed1f55d7 Mon Sep 17 00:00:00 2001 From: Bapfauvel Date: Sun, 22 Dec 2024 12:30:47 +0100 Subject: [PATCH] Update 0_preprocessing_bis.py --- analysis/0_preprocessing_bis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/0_preprocessing_bis.py b/analysis/0_preprocessing_bis.py index a3fa112..7e43722 100644 --- a/analysis/0_preprocessing_bis.py +++ b/analysis/0_preprocessing_bis.py @@ -152,7 +152,7 @@ def osf_listfiles(data_subproject="", token="", after_date=None): # Extract psychedelic data psychedelic = data[ (data["stimulus"] == '

Have you taken a psychedelic drug in the last 6 months? (E.g. LSD, psilocybin mushrooms, ayahuasca)

') | - (data["stimulus"] == '

Have you ever taken any classical psychedelic substance (e.g. LSD, psilocybin mushrooms, ayahuasca) in your life ?

') | + (data["stimulus"] == '

Have-you ever taken any classical psychedelic substance (e.g. LSD, psilocybin mushrooms, ayahuasca) in your life ?

') | (data["stimulus"] == '

Avez-vous déjà consommé une substance psychédélique au cours de votre vie (e.g., LSD, champignons à psilocybe, ayahuasca) ?

') ] psychedelic_response = psychedelic["response"].values[0] if not psychedelic.empty else np.nan