This is the web app designed to facilitate coding experimental philosophy papers using X-PHI Transparency and Quality of Reporting Inventory V2.
In the XPHITQRI.yaml file you can find ALL items in the inventory as well as coding instructions and additional elements.
You can run it locally using conda (https://docs.anaconda.com/miniconda/install/) or other Python distribution system.
environment.ymlcontains an environment file forconda, so to create new environment you need to runconda env create --name metacoder --file=environment.ymland switch to it usingconda activate metacoder- to run the app you need to:
- set
BASE_PATHenvironmental variable to the directory containing the app andFLASK_APPto__init__.py - optionally set
DATABASE_PATHto point to a writable SQLite file (useful to keep your working DB outside the repo, e.g.instance/baza.db) - run
flask shellanddb.create_all()inside the shell to create an empty database - run
flask runin the app directory
- set
Run a flask shell:
FLASK_APP=__init__.py flask shellUser.query.all()[0].role = "admin" # set admin permissions
db.session.delete(User.query.all()[0]) # delete an user
db.session.commit()Scores are stored in XPHITQRI.yaml file. You can inspect all sections with scores using utils/inspect_scoring.py utility.
python inspect_scoring.py -p XPHITQRI.yaml