From c119e797d149d319308bdda3d50513600f35564f Mon Sep 17 00:00:00 2001 From: Nicolas Legrand Date: Tue, 8 Jun 2021 11:30:04 +0200 Subject: [PATCH 1/3] Update parameters.py Fix randomization of the exteroception modality --- cardioception/HRD/parameters.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cardioception/HRD/parameters.py b/cardioception/HRD/parameters.py index 4ba3d10..3fe99aa 100644 --- a/cardioception/HRD/parameters.py +++ b/cardioception/HRD/parameters.py @@ -131,11 +131,6 @@ def getParameters( Subject ID. Default is 'Participant'. path : str The task working directory. - referenceTone : callable - Function selecting the reference tones for the exteroceptive condition. - The output should be a single float matching the name of the `.wav` - files (ending with `.0` or `.5`). Default is uniform between 40.0 and - 100.0 BPM (`np.random.choice(np.arange(40, 100, 0.5))`). resultPath : str or None Where to save the results. serial : PySerial instance @@ -198,7 +193,6 @@ def getParameters( parameters["nBreaking"] = nBreaking parameters["lambdaIntero"] = [] # Save the history of lambda values parameters["lambdaExtero"] = [] # Save the history of lambda values - parameters["referenceTone"] = np.random.choice(np.arange(40, 100, 0.5)) parameters["nFinger"] = None parameters["signal_df"] = pd.DataFrame([]) # Physiological recording parameters["results_df"] = pd.DataFrame([]) # Behavioral results From 6539616b390f85c2c9857df55ded526b9208c270 Mon Sep 17 00:00:00 2001 From: Nicolas Legrand Date: Tue, 8 Jun 2021 11:35:42 +0200 Subject: [PATCH 2/3] Update task.py Fix randomization in the trial function --- cardioception/HRD/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardioception/HRD/task.py b/cardioception/HRD/task.py index a0ed6ad..560b4d6 100644 --- a/cardioception/HRD/task.py +++ b/cardioception/HRD/task.py @@ -541,7 +541,7 @@ def trial( parameters["triggers"]["listeningStart"] # Send triggers # Random selection of HR frequency - listenBPM = parameters["referenceTone"] + listenBPM = np.random.choice(np.arange(40, 100, 0.5)) # Play the corresponding beat file listenFile = pkg_resources.resource_filename( From 53a6d66cbd38ca7b1d17b6ac85448241dacc4fff Mon Sep 17 00:00:00 2001 From: Nicolas Legrand Date: Tue, 8 Jun 2021 11:36:20 +0200 Subject: [PATCH 3/3] Update setup.py move to v.0.4.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c9ebeec..1b3dc89 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def read(fname): DISTNAME = "cardioception" MAINTAINER = "Nicolas Legrand" MAINTAINER_EMAIL = "nicolas.legrand@cfin.au.dk" -VERSION = "0.4.0" +VERSION = "0.4.1" INSTALL_REQUIRES = [ "systole>=0.1.3",