cardioception.HRD.config.TaskConfig#

class cardioception.HRD.config.TaskConfig(respMax=5.0, minRatingTime=0.5, maxRatingTime=5.0, startKey='space', response_keys=<factory>, nFeedback=5, nConfidence=8, isi=(0.25, 0.25), listeningDuration=5.0, HRcutOff=(40.0, 120.0), continuousRecording=False, maxHeartRateAttempts=10, exteroBPMRange=(40.0, 100.0, 0.5), psiPreset='legacy', intensRange=None, alphaRange=None, betaRange=None, delta=None, textSize=0.04, fixationSize=0.04)[source]#

Design factors an experimenter is likely to want to change.

Every default is the value the task used before this class existed, so an unconfigured session behaves exactly as it did.

__init__(respMax=5.0, minRatingTime=0.5, maxRatingTime=5.0, startKey='space', response_keys=<factory>, nFeedback=5, nConfidence=8, isi=(0.25, 0.25), listeningDuration=5.0, HRcutOff=(40.0, 120.0), continuousRecording=False, maxHeartRateAttempts=10, exteroBPMRange=(40.0, 100.0, 0.5), psiPreset='legacy', intensRange=None, alphaRange=None, betaRange=None, delta=None, textSize=0.04, fixationSize=0.04)#

Methods

__init__([respMax, minRatingTime, ...])

apply(parameters)

Write these factors into a parameters dictionary.

describe()

The whole configuration, for the manifest, with the psi settings each staircase actually used.

psi(modality)

The psi settings one staircase runs with: the preset, then overrides.

Attributes

HRcutOff

Heart rates outside this range are treated as artefact and the listening window is retaken.

allowedKeys

The keys the decision screen listens for.

alphaRange

betaRange

continuousRecording

Keep the pulse recorded for the whole session, not only inside the listening windows.

delta

Lapse rate, held fixed rather than estimated.

exteroBPMRange

Range the exteroceptive reference tone is drawn from, as (low, high, step) in BPM.

fixationSize

Fixation cross, in height units.

intensRange

Bounds of the psi staircase, in delta-BPM.

isi

Inter-stimulus interval, drawn uniformly between the two values.

listeningDuration

Seconds of listening per trial, in both modalities: the exteroceptive tone plays for this long and the interoceptive pulse is recorded for it.

maxHeartRateAttempts

How many times to retake a window before accepting whatever it holds and flagging the trial.

maxRatingTime

Seconds before the rating scale gives up and records no rating.

minRatingTime

Seconds before a confidence rating can be submitted, so the starting value cannot be confirmed reflexively.

nConfidence

Tutorial trials that ask for a confidence rating.

nFeedback

Tutorial trials that show whether the answer was correct.

psiPreset

Named psi settings for both staircases, from PSI_PRESETS: "legacy" (the default, as in the original paper) or "courtin".

respMax

Seconds a participant has to make the faster/slower decision.

startKey

Key that advances instruction screens.

textSize

Text height, in height units.

response_keys

Which key means which judgement.