Skip to content

A small script to create tests for a psych study conducted by UBC students as part of coursework

License

Notifications You must be signed in to change notification settings

kvmu/psych-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psych-study

A small script to create tests for a psych study conducted by UBC students as part of coursework (study details here).

Overview

My specifications are as follows:

  • Given a list of 110 words and a 110 photo files (.png) arrange them in to sets of 5 x 4 arrays.
  • The arrangement of words or pictures must be random and there cannot be any repeats in any given set.
  • The ouput must be in .pdf format.
  • There must be 100 such outputs.

My implementation is as follows:

  1. Use Python to randomly (uniform distribution) select photos or words.
  2. Use Python to to create 100 formatted LaTeX files with the selected photos or words.
  3. Use a Windows PowerShell script to batch compile the 100 LaTeX files (using pdflatex, so the outputs are pdfs).

Contents

photos : where the given input photos are located

photos_output : where the photo outputs are located (haven't compiled, so it is just in raw .tex form -- PowerShell script is also located in this directory)

words_output : where the photo outputs are located (haven't compiled, so it is just in raw .tex form -- PowerShell script is also located in this directory)

PSYCH217-ItemList.txt : .txt file containing the list of words

generateTeX.py : the Python script that generates the LaTeX files

About

A small script to create tests for a psych study conducted by UBC students as part of coursework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published