from otree.api import * class C(BaseConstants): NAME_IN_URL = 'survey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): eval1 = models.IntegerField( label='Arvioi kokeen vaikeusastetta? Kirjoita numero väliltä 1-10, jossa 1= erittäin helppo...10=erittäin vaikea. / Evaluate the difficulty of the experiment? Write the number from 1 to 10, where 1= extremely easy...10=extremely difficult', min=1, max=10 ) inst_read = models.StringField( choices=[[' huonosti / poorly', 'huonosti / poorly'], ['kohtuullisen hyvin/ moderately', 'kohtuullisen hyvin/ moderately'], ['erittäin tarkasti / extremely carefully', 'erittäin tarkasti / extremely carefully']], label='Kuinka tarkasti luit saamasi ohjeet? / How carefully did you read the instructions?', widget=widgets.RadioSelect, ) lofdisturb = models.StringField( choices=[['ei lainkaan / not at all', 'ei lainkaan / not at all', ], ['hieman / slightly', 'hieman / slightly'], ['en tiedä / do not know', 'en tiedä / do not know'], ['jonkin verran / somewhat', 'jonkin verran/ somewhat'], ['paljon / very much', 'paljon / very much']], label='Vaikuttiko taustahäly koetilanteeseen/keskittymiseesi? / Did the background noise affect your test situation/concentration?', widget=widgets.RadioSelect, ) satisfaction = models.StringField( choices=[[' erittäin tyytymätön / very dissatisfied', 'erittäin tyytymätön / very dissatisfied'], ['tyytymätön / dissatisfied', 'tyytymätön / dissatisfied'], ['en tyytymätön enkä tyytyväinen /neither dissatisfied nor satisfied', 'en tyytymätön enkä tyytyväinen /neither dissatisfied nor satisfied'], ['tyytyväinen / satisfied', 'tyytyväinen / satisfied'], ['erittäin tyytyväinen / very satisfied', 'erittäin tyytyväinen / very satisfied']], label='Kuinka tyytyväinen olet ansaitsemaasi palkkioon? / How satisfied you are with your reward?', widget=widgets.RadioSelect, ) lofconf = models.StringField( choices=[['paljon / very much', 'paljon / very much'], ['jonkin verran / somewhat', 'jonkin verran/ somewhat'], ['en tiedä / do not know', 'en tiedä / do not know'], ['hieman / slightly', 'hieman / slightly'], ['ei lainkaan / not at all', 'ei lainkaan / not at all']], label='Onko sinulla epäilyksiä palkkionmaksun osalta? / Do you have doubts related to payment?', widget=widgets.RadioSelect, ) lofconf2 = models.StringField( choices=[['paljon / very much', 'paljon / very much'], ['jonkin verran / somewhat', 'jonkin verran/ somewhat'], ['en tiedä / do not know', 'en tiedä / do not know'], ['hieman / slightly', 'hieman / slightly'], ['ei lainkaan / not at all', 'ei lainkaan / not at all']], label='Luotitko siihen, että toinen osallistuja, jonka kanssa olit vuorovaikutuksessa on todellinen koehenkilö eikä automatisoitu konevastaaja? / Do you have trust that the other participant in the exam is a real person?', widget=widgets.RadioSelect, ) partfre = models.StringField( choices=[['>5 kertaa / times', '>5 kertaa / times'], ['2-4 kertaa / times', '2-4 kertaa / times'], ['kerran / once', 'kerran / once'], ['en koskaan / never', 'en koskaan / never']], label='Oletko aiemmin osallistunut samankaltaiseen eksperimenttiin? / Have you participated in similar experiments?', widget=widgets.RadioSelect, ) #crt_bat = models.IntegerField( # label=''' # Maila ja pallo maksavat yhteensä 22euroa. # Maila maksaa 20 euroa enemmän kuin pallo. # Kuinka paljon pallo maksaa? / A bat and a ball cost 22 euros in total. # The bat costs 20 euros more than the ball. # How many euros does the ball cost?''' #) #crt_widget = models.IntegerField( # label=''' # Mikäli 5 koneelta kestää 5 minuuttia tehdä 5 laitetta, niin kauanko kestää 100 koneelta tehdä 100 laitetta? / # If it takes 5 machines 5 minutes to make 5 widgets, # how many minutes would it take 100 machines to make 100 widgets? # ''' #) #crt_lake = models.IntegerField( # label=''' # Järvessä on lautta lumpeita. Joka päivä lumpeet tuplaavat lautan koon. Mikäli järvi on täyttynyt lumpeista 48 päivässä, # niin kuinka monta päivää kuluu siihen että lumpeet peittävät puolet järvestä? / # In a lake, there is a patch of lily pads. # Every day, the patch doubles in size. # If it takes 48 days for the patch to cover the entire lake, # how many days would it take for the patch to cover half of the lake? # ''' #) # FUNCTIONS # PAGES class Demographics(Page): form_model = 'player' form_fields = ['eval1', 'inst_read', 'lofdisturb', 'satisfaction', 'lofconf', 'lofconf2', 'partfre'] #class CognitiveReflectionTest(Page): # form_model = 'player' # form_fields = ['crt_bat', 'crt_widget', 'crt_lake'] page_sequence = [Demographics]