DXV_OPSS OTree and Python systems

Faculty of Economics and Administration
Autumn 2019
Extent and Intensity
0/36/0. 2 credit(s). Type of Completion: z (credit).
Teacher(s)
Ing. Miloš Fišar, Ph.D. (lecturer)
Tommaso Reggiani, PhD (lecturer)
Ing. Jan Vávra (lecturer)
Guaranteed by
prof. Mgr. Jiří Špalek, Ph.D.
Department of Public Economics – Faculty of Economics and Administration
Supplier department: Department of Public Economics – Faculty of Economics and Administration
Course Enrolment Limitations
The course is also offered to the students of the fields other than those the course is directly associated with.
fields of study / plans the course is directly associated with
Course objectives
The course is intended to equip students with the necessary skills to program economic experiments using oTree and the Python programming language.
Learning outcomes
At the end of the training, students will be able to program simple experiments and edit more complex economic experiments with oTree. They would have the knowledge to independently run laboratory or lab-in-the filed experiments using oTree or to use this platform for other behavioral research.
Syllabus
  • Main topics

  • How oTree works, used technologies (Python, Django, Bootstrap, html, JavaScript), parts of the oTree project, project vs. app, developing in oTree, Python, Python classes represented by models.py, crash course in Python (variables, data types, classes, functions, methods and loops), pages.py, templates (Django template language), server setup, where and how to find help.

  • Programming simple experiments from scratch: defining and connecting models.py (player, group, sub-session and session tables), pages.py and templates; construction of methods; triggering methods from pages.py using built-in methods; using if conditions in templates; Django template language.

  • Rounds, Treatments, Timeouts, Money and Payoffs, Admin Interface; programming more advanced experiments.

  • Introduction of jTree (a javascript toolbox for running economics experiments).

Teaching methods
group projects, lectures
Language of instruction
English
Further Comments
The course is taught only once.
The course is taught: in blocks.

  • Enrolment Statistics (recent)
  • Permalink: https://is.muni.cz/course/econ/autumn2019/DXV_OPSS