Consent
*******

class psynet.consent.AudiovisualConsent(time_estimate=30)

   Bases: "Module"

   The audiovisual consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class AudiovisualConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the audiovisual consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

psynet.consent.CAPRecruiterAudiovisualConsent

   alias of "LabRecruiterAudiovisualConsent"

psynet.consent.CAPRecruiterStandardConsent

   alias of "LabRecruiterStandardConsent"

class psynet.consent.Consent

   Bases: "Elt"

   Inherit from this class to mark a timeline element as being part of
   a consent form. PsyNet requires you have at least one such element
   in your timeline, to make sure you don't forget to include a
   consent form. See "LabRecruiterAudiovisualConsentPage" for an
   example. If you're sure you want to omit the consent form, include
   a "NoConsent" element in your timeline.

class psynet.consent.DatabaseConsent(time_estimate=30)

   Bases: "Module"

   The database consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class DatabaseConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the database consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.LabRecruiterAudiovisualConsent(time_estimate=30)

   Bases: "Module"

   The Lab Recruiter audiovisual recordings consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class LabRecruiterAudiovisualConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the Lab Recruiter audiovisual consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.LabRecruiterStandardConsent(time_estimate=30)

   Bases: "Module"

   The Lab Recruiter standard consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class LabRecruiterStandardConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the Lab Recruiter standard consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.LucidConsent(time_estimate=30)

   Bases: "Module"

   The Lucid consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class LucidConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the Lucid consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.MainConsent(time_estimate=30)

   Bases: "Module"

   The main consent form of the Max Planck Institute for Empirical
   Aesthetics.

   Warning:

     The text says the study is run by the Max Planck Institute for
     Empirical Aesthetics and names one of its researchers. Use it
     only for studies covered by that institute's ethics approval;
     otherwise write a consent page with your own approved text (see
     Consent).

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class MainConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the main consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.NoConsent

   Bases: "Consent", "NullElt"

   If you want to have no consent form in your timeline, use this
   element as an empty placeholder.

class psynet.consent.OpenScienceConsent(time_estimate=30)

   Bases: "Module"

   The open science consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class OpenScienceConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the open science consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

psynet.consent.PrincetonCAPRecruiterConsent

   alias of "PrincetonLabRecruiterConsent"

class psynet.consent.PrincetonConsent(time_estimate=30)

   Bases: "Module"

   The Princeton University consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class PrincetonConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the Princeton University consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.PrincetonLabRecruiterConsent(time_estimate=30)

   Bases: "Module"

   The Princeton University consent form to be used in conjunction
   with Lab Recruiter.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class PrincetonLabRecruiterConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the Princeton University consent page to be
      used in conjunction with Lab Recruiter.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.

class psynet.consent.VoluntaryWithNoCompensationConsent(time_estimate=30)

   Bases: "Module"

   The voluntary participation with no compensation consent form.

   Parameters:
      **time_estimate** ("Optional"["float"]) -- Time estimated for
      the page.

   class VoluntaryWithNoCompensationConsentPage(time_estimate=30)

      Bases: "Page", "Consent"

      This page displays the voluntary participation with no
      compensation consent page.

      Parameters:
         **time_estimate** ("Optional"["float"]) -- Time estimated for
         the page.

      format_answer(raw_answer, **kwargs)

         Formats the raw answer object returned from the participant's
         browser.

         Parameters:
            * **raw_answer** -- The raw answer object returned from
              the participant's browser.

            * ****kwargs** --

              Keyword arguments, including:

              1. "blobs": A dictionary of any blobs that were returned
                 from the participant's browser.

              2. "metadata": The metadata returned from the
                 participant's browser.

              3. "experiment": An instantiation of
                 "psynet.experiment.Experiment", corresponding to the
                 current experiment.

              4. "participant": An instantiation of
                 "psynet.participant.Participant", corresponding to
                 the current participant.

         Returns:
            * *Object* -- The formatted answer, suitable for
              serialisation to JSON and storage in the database.

      get_bot_response(experiment, bot)

         This function is used when a bot simulates a participant
         responding to a given page. In the simplest form, the
         function just returns the value of the answer that the bot
         returns, which is saved without passing through
         "format_answer". For more sophisticated treatment, the
         function can return a "BotResponse" object which contains
         other parameters such as "blobs" and "metadata". PsyNet's
         built-in answer controls return "BotResponse(raw_answer=...)"
         with what the browser would submit, so that bot answers pass
         through the same "format_answer" methods as browser answers.
