A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

RaMa-Scene

RaMa-Scene a web-platform to analyse Environmentally Extended Input-Output data and generate scenarios.
https://github.com/CMLPlatform/ramascene

Category: Industrial Ecology
Sub Category: Input Output Model

Last synced: about 12 hours ago
JSON representation

Repository metadata

RaMa-Scene a web-platform to analyse Environmentally Extended Input-Output data and generate scenarios

README.md

RaMa-Scene


RaMa-Scene is a django 2.0 based web-application that allows for analyzing Environmentally Extended Input-Output (EEIO) tables. EXIOBASE v3.3 is used in this project.
Demo version: http://cml.liacs.nl:8080/ramascene/

License: GPL v3
Contributions welcome

Developers Guide


http://rama-scene.readthedocs.io/en/latest/

Getting started


Retrieve the raw datasets

EXIOBASE-Rama-Scene (modified version including secondary materials):

http://doi.org/10.5281/zenodo.3533196

Clone the project

git clone https://bitbucket.org/CML-IE/rama-scene.git

Create a virtual environment (python3.5 or higher) and install the app requirements (make sure you have python-dev installed via apt-get)

$ pip3 install -r requirements.txt 

Install node.js (node version: 3.10.10 or higher)

$ sudo apt-get update
$ sudo apt-get install nodejs

Note: On debian apt install nodejs-legacy

Install redis (for Django Channels)

$ sudo apt install redis-server

Install rabbitMQ (for Celery)

$ sudo apt-get install -y erlang

$ sudo apt-get install rabbitmq-server

Then enable and start the RabbitMQ service:

$ systemctl enable rabbitmq-server

$ systemctl start rabbitmq-server

Check the status to make sure everything is running:
$ systemctl status rabbitmq-server

Note: Perform all next steps in the virtualenv and in the rootfolder of the project

Set the following environment variables (see sample-dev-env.sh):

export DJANGO_SETTINGS_MODULE=ramasceneMasterProject.config.dev
export DATASETS_VERSION=version downloaded e.g. v3
export DATASETS_DIR=my/path/to/datasets
export OPENBLAS_NUM_THREADS=adjust according to how many cores you want to use

If you are on Linux and using the OpenBlas library for Numpy.
It is advised to set the number of threads Numpy uses. To find which library is used in python:

>>>import numpy as np
>>>np.__config__.show()

Prepare the database

$ python3 manage.py makemigrations
$ python3 manage.py migrate

Populate the database

$ python3 manage.py populateHierarchies

Prepare static resources

$ npm install

Built React bundle

$ ./node_modules/.bin/webpack --config dev-webpack.config.js 

Start Celery

Start the default module to enable handling of analytical calculations:

$ celery -A ramasceneMasterProject worker -l info  --concurrency 1 --queue calc_default -n worker1.%h

Start the modelling module to enable handling of modelling calculations:

$ celery -A ramasceneMasterProject worker -l info  --concurrency 1 --queue modelling -n worker2.%h

Start the development server

$ python3 manage.py runserver

Access the app via the webrowser: http://127.0.0.1:8000/ramascene/

[Optional] enable debug logging

To enable debug logging, open the ramasceneMasterProject/config/dev.py file.
Uncomment the "logging for Django" section.

[Optional] run tests

In case you want to run tests you can perform unit tests in the root folder:

$ python3 manage.py test -v2

For integration tests you need to start the celery workers first (explained above).
You can perform the integration test with the following command:

$ pytest -vs

If the test has succeeded, you�ll need to repopulate the database with the following command:

$ python3 manage.py populateHierarchies

Core dependencies


The app uses Celery [4.1.0] (http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html), Django channels [2.1.5] (https://channels.readthedocs.io/en/latest/)


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 6 days ago

Total Commits: 309
Total Committers: 7
Avg Commits per committer: 44.143
Development Distribution Score (DDS): 0.421

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
SidneyNiccolson s****n@g****m 179
Bart Daniels b****s@v****e 62
fdonati f****i@c****l 30
dierckxk k****x@v****e 29
SidneyNiccolson y****u@e****m 7
danielsb 2****1 1
bubbels k****g@c****l 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 0
Total pull requests: 67
Average time to close issues: N/A
Average time to close pull requests: about 1 year
Total issue authors: 0
Total pull request authors: 2
Average comments per issue: 0
Average comments per pull request: 0.99
Merged pull request: 1
Bot issues: 0
Bot pull requests: 66

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/CMLPlatform/ramascene

Top Issue Authors

Top Pull Request Authors

  • dependabot[bot] (66)
  • bdanielsb (1)

Top Issue Labels

Top Pull Request Labels

  • dependencies (66)
  • javascript (45)
  • python (20)
  • ruby (1)

Dependencies

package.json npm
  • babel-core ^6.24.1 development
  • babel-loader ^7.1.4 development
  • babel-preset-es2015 ^6.24.1 development
  • babel-preset-react ^6.24.1 development
  • css-loader ^0.28.11 development
  • file-loader ^1.1.11 development
  • flow-bin ^0.68.0 development
  • node-sass ^4.7.2 development
  • sass-loader ^6.0.7 development
  • style-loader ^0.20.3 development
  • webpack ^3.11.0 development
  • webpack-bundle-tracker ^0.3.0 development
  • webpack-cli ^2.0.12 development
  • webpack-config-utils ^2.3.0 development
  • ws ^5.1.1 development
  • babel-plugin-import ^1.7.0
  • babel-polyfill ^6.26.0
  • d3-format ^1.3.0
  • d3plus-react ^0.3.1
  • dotenv ^6.2.0
  • extract-text-webpack-plugin ^3.0.2
  • jquery ^3.3.1
  • npm ^6.4.0
  • papaparse ^4.3.7
  • rc-tree-select ^1.12.9
  • react ^16.2.0
  • react-bootstrap ^0.32.1
  • react-confirm-alert ^2.0.2
  • react-csv ^1.0.14
  • react-dom ^16.2.0
  • react-ga ^2.5.6
  • react-scripts 1.1.1
  • shortid ^2.2.8
Gemfile rubygems
  • capistrano >= 0 development
  • capistrano-sas >= 0 development
  • capistrano-yarn >= 0 development
  • dotenv >= 0 development
Gemfile.lock rubygems
  • airbrussh 1.3.1
  • capistrano 3.11.0
  • capistrano-sas 1.0.0
  • capistrano-yarn 2.0.2
  • concurrent-ruby 1.1.4
  • dotenv 2.7.1
  • i18n 1.6.0
  • net-scp 1.2.1
  • net-ssh 5.1.0
  • rake 12.3.2
  • sshkit 1.18.2
Dockerfile docker
  • wodby/nginx ${NGINX_VERSION} build
  • wodby/node ${NODE_VERSION} build
  • wodby/python ${PYTHON_VER}-dev build
  • wodby/python ${PYTHON_VER} build
docker-compose.yml docker
  • rabbitmq 3.9.11-management-alpine
  • redis 7.0-alpine
static_assets/vendor/font-awesome/package.json npm
yarn.lock npm
  • 1585 dependencies
python_ini/geomapBuilds/requirements.txt pypi
  • Fiona ==1.7.11.post1
  • PySAL ==1.14.3
  • Shapely ==1.6.4.post1
  • click ==6.7
  • click-plugins ==1.0.3
  • cligj ==0.4.0
  • cycler ==0.10.0
  • descartes ==1.1.0
  • geopandas ==0.3.0
  • kiwisolver ==1.0.1
  • matplotlib ==2.2.2
  • munch ==2.3.1
  • numpy ==1.14.2
  • pandas ==0.22.0
  • pyparsing ==2.2.0
  • pyproj ==1.9.5.1
  • python-dateutil ==2.7.2
  • pytz ==2018.4
  • scipy ==1.0.1
  • six ==1.11.0
requirements.txt pypi
  • Automat ==0.7.0
  • Babel ==2.5.3
  • Django ==2.1
  • Jinja2 ==2.10
  • MarkupSafe ==1.1.1
  • PyHamcrest ==1.9.0
  • Pygments ==2.2.0
  • Sphinx ==1.7.4
  • Twisted ==18.7.0
  • aioredis ==1.0.0
  • alabaster ==0.7.10
  • amqp ==2.2.2
  • asgiref ==2.3.2
  • async-generator ==1.10
  • async-timeout ==2.0.1
  • atomicwrites ==1.2.1
  • attrs ==18.2.0
  • autobahn ==18.8.1
  • billiard ==3.5.0.3
  • celery ==4.1.0
  • certifi ==2018.4.16
  • channels ==2.1.5
  • channels-redis ==2.3.2
  • chardet ==3.0.4
  • constantly ==15.1.0
  • daphne ==2.2.2
  • django-celery-results ==1.0.1
  • django-cors-headers ==2.4.0
  • django-webpack-loader ==0.5.0
  • docutils ==0.14
  • flower ==0.9.2
  • gunicorn ==19.9.0
  • hiredis ==0.2.0
  • hyperlink ==18.0.0
  • idna ==2.7
  • imagesize ==1.0.0
  • incremental ==17.5.0
  • kombu ==4.1.0
  • more-itertools ==4.3.0
  • msgpack ==0.5.4
  • msgpack-python ==0.5.4
  • numpy ==1.14.1
  • packaging ==17.1
  • pathlib2 ==2.3.3
  • pluggy ==0.8.0
  • pockets ==0.6.2
  • py ==1.7.0
  • pyparsing ==2.2.0
  • pytest ==4.0.1
  • pytest-asyncio ==0.9.0
  • pytest-django ==3.4.4
  • pytz ==2018.5
  • redis ==2.10.6
  • requests ==2.27.1
  • six ==1.11.0
  • snowballstemmer ==1.2.1
  • sphinx-rtd-theme ==0.3.1
  • sphinxcontrib-napoleon ==0.6.1
  • sphinxcontrib-websupport ==1.0.1
  • tornado ==4.5.3
  • txaio ==18.7.1
  • urllib3 ==1.22
  • vine ==1.1.4
  • xlrd ==1.1.0
  • zope.interface ==4.7.2
rtd_requirements.txt pypi
  • Automat ==0.6.0
  • Babel ==2.5.3
  • Django ==2.0.2
  • Jinja2 ==2.10
  • MarkupSafe ==1.0
  • Pygments ==2.2.0
  • Sphinx ==1.7.4
  • Twisted ==17.9.0
  • aioredis ==1.0.0
  • alabaster ==0.7.10
  • amqp ==2.2.2
  • asgiref ==2.1.6
  • async-timeout ==2.0.0
  • attrs ==17.4.0
  • autobahn ==17.10.1
  • billiard ==3.5.0.3
  • celery ==4.1.0
  • certifi ==2018.4.16
  • channels ==2.0.2
  • channels-redis ==2.0.3
  • chardet ==3.0.4
  • constantly ==15.1.0
  • daphne ==2.0.3
  • django-celery-results ==1.0.1
  • django-cors-headers ==2.4.0
  • django-webpack-loader ==0.5.0
  • docutils ==0.14
  • flower ==0.9.2
  • hiredis ==0.2.0
  • hyperlink ==17.3.1
  • idna ==2.6
  • imagesize ==1.0.0
  • incremental ==17.5.0
  • kombu ==4.2.0
  • msgpack ==0.5.4
  • msgpack-python ==0.5.4
  • packaging ==17.1
  • pockets ==0.6.2
  • pyparsing ==2.2.0
  • pytz ==2018.3
  • redis ==2.10.6
  • requests ==2.18.4
  • six ==1.11.0
  • snowballstemmer ==1.2.1
  • sphinx-rtd-theme ==0.3.1
  • sphinxcontrib-napoleon ==0.6.1
  • sphinxcontrib-websupport ==1.0.1
  • tornado ==4.5.3
  • txaio ==2.8.2
  • urllib3 ==1.22
  • vine ==1.1.4
  • xlrd ==1.1.0
  • zope.interface ==4.4.3
setup.py pypi

Score: 3.737669618283368