Skip to content

autora.experiment_runner.firebase_prolific

firebase_prolific_runner(**kwargs)

A runner that uses firebase to store the condition and the dependent variable and prolific to recruit participants. Args: **kwargs: the configuration of the experiment. firebase_credentials: a dict with firebase service account credentials sleep_time: the time between checks to the firebase database and updates of the prolific experiment study_name: a name for the study showing up in prolific study_description: a description for the study showing up in prolific study_url: the url to your experiment study_completion_time: the average completion time for a participant to complete the study prolific_token: api token from prolific Returns: the runner

Source code in temp_dir/experiment-runner-firebase-prolific/src/autora/experiment_runner/firebase_prolific/__init__.py
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
def firebase_prolific_runner(**kwargs):
    """
    A runner that uses firebase to store the condition and the dependent variable and prolific to
    recruit participants.
    Args:
        **kwargs: the configuration of the experiment.
            firebase_credentials: a dict with firebase service account credentials
            sleep_time: the time between checks to the firebase database and updates of the prolific experiment
            study_name: a name for the study showing up in prolific
            study_description: a description for the study showing up in prolific
            study_url: the url to your experiment
            study_completion_time: the average completion time for a participant to complete the study
            prolific_token: api token from prolific
    Returns:
        the runner
    """

    def runner(x):
        return _firebase_prolific_run(x, **kwargs)

    return runner

firebase_runner(**kwargs)

A runner that uses firebase to store the condition and the dependent variable. Args: **kwargs: the configuration of the experiment firebase_credentials: a dict with firebase service account credentials time_out: time out to reset a condition that was started but not finished sleep_time: the time between checks and updates of the firebase database

Returns:

Type Description

the runner

Source code in temp_dir/experiment-runner-firebase-prolific/src/autora/experiment_runner/firebase_prolific/__init__.py
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
def firebase_runner(**kwargs):
    """
    A runner that uses firebase to store the condition and the dependent variable.
    Args:
        **kwargs: the configuration of the experiment
            firebase_credentials: a dict with firebase service account credentials
            time_out: time out to reset a condition that was started but not finished
            sleep_time: the time between checks and updates of the firebase database

    Returns:
        the runner
    """

    def runner(x):
        return _firebase_run(x, **kwargs)

    return runner