Skip to content

web application to store and manage simulations

Notifications You must be signed in to change notification settings

billtr0n/pyorogeny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyOrogeny

simple web-database to store and display dynamic rupture simulations from sord. initial start for fully web-based dynamic rupture simulation platform.

Downloading and configuring postgreSQL database

#####install postgreSQL
brew install postgres

#####configure postgre database
$ psql -d postgres
postgres=# CREATE ROLE dbuser WITH LOGIN PASSWORD 'Perchlife!';
postgres=# CREATE DATABASE model_database;
postgres=# GRANT ALL PRIVILEGES ON DATABASE model_database TO dbuser;
postgres=# ALTER USER dbuser CREATEDB;

Starting development server

install requirements
pip install -r requiements.txt

start redis server
redis-server &

test redis server
redis-cli ping

start celery worker (from pyorogeny directory)
venv/bin/celery --app=model_database.celeryapp:app worker --loglevel=INFO
note: call celery from bin directory in project virtualenv

make database migrations (only run when necessary)
python manage.py makemigrations

migrate database (only run when necessary)
python manage.py migrate

start django server
python manage.py runserver

Todo

  • add editable div to input figure captions and simulation comments
  • implement visualization of model overview
  • clean up model detail page and simulation list
  • implement tagging system for database
  • add support for gmpe comparisons
  • and wave-propagation simulations

Future

  • develop datastore to store raw data

About

web application to store and manage simulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published