Skip to content

Repository files navigation

metacoder - a web app for coding x-phi papers using X-PHI TQRI V2

This is the web app designed to facilitate coding experimental philosophy papers using X-PHI Transparency and Quality of Reporting Inventory V2.

(Methodologically) Important files

In the XPHITQRI.yaml file you can find ALL items in the inventory as well as coding instructions and additional elements.

Running it locally

You can run it locally using conda (https://docs.anaconda.com/miniconda/install/) or other Python distribution system.

  • environment.yml contains an environment file for conda, so to create new environment you need to run conda env create --name metacoder --file=environment.yml and switch to it using conda activate metacoder
  • to run the app you need to:
    • set BASE_PATH environmental variable to the directory containing the app and FLASK_APP to __init__.py
    • optionally set DATABASE_PATH to point to a writable SQLite file (useful to keep your working DB outside the repo, e.g. instance/baza.db)
    • run flask shell and db.create_all() inside the shell to create an empty database
    • run flask run in the app directory

Administration

Run a flask shell:

FLASK_APP=__init__.py flask shell
User.query.all()[0].role = "admin" # set admin permissions
db.session.delete(User.query.all()[0]) # delete an user
db.session.commit()

Scoring system

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

About

A tool for coding x-phi papers using X-PHI TQRI

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages