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
HRcutOffHeart rates outside this range are treated as artefact and the listening window is retaken.
allowedKeysThe keys the decision screen listens for.
alphaRangebetaRangecontinuousRecordingKeep the pulse recorded for the whole session, not only inside the listening windows.
deltaLapse rate, held fixed rather than estimated.
exteroBPMRangeRange the exteroceptive reference tone is drawn from, as (low, high, step) in BPM.
fixationSizeFixation cross, in height units.
intensRangeBounds of the psi staircase, in delta-BPM.
isiInter-stimulus interval, drawn uniformly between the two values.
listeningDurationSeconds of listening per trial, in both modalities: the exteroceptive tone plays for this long and the interoceptive pulse is recorded for it.
maxHeartRateAttemptsHow many times to retake a window before accepting whatever it holds and flagging the trial.
maxRatingTimeSeconds before the rating scale gives up and records no rating.
minRatingTimeSeconds before a confidence rating can be submitted, so the starting value cannot be confirmed reflexively.
nConfidenceTutorial trials that ask for a confidence rating.
nFeedbackTutorial trials that show whether the answer was correct.
psiPresetNamed psi settings for both staircases, from
PSI_PRESETS:"legacy"(the default, as in the original paper) or"courtin".respMaxSeconds a participant has to make the faster/slower decision.
startKeyKey that advances instruction screens.
textSizeText height, in height units.
response_keysWhich key means which judgement.