Coder Social home page Coder Social logo

angellareo / eea-work-ghg-20-30-model Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 160 KB

Computational model for the report: Work scenarios in the ecosocial transition - 2020-2030.

Home Page: https://www.ecologistasenaccion.org/132893/informe-escenarios-de-trabajo-en-la-transicion-ecosocial-2020-2030/

Python 100.00%
ghg-emissions dynamical-modeling work scenarios economy-simulator

eea-work-ghg-20-30-model's Introduction

Work scenarios in the ecosocial transition - 2020-2030

Ubuntu installation

Just run the following commands once:

cd eea-model

sudo apt-get install python3 python3-pip
sudo pip3 install virtualenv

virtualenv -p /usr/bin/python3 modelenv
source modelenv/bin/activate
pip3 install numpy scipy matplotlib ipython jupyter pandas sympy nose pyyaml xlrd xlwt

Execution

source modelenv/bin/activate
python3 main.py

To select the input/output file names, modify the following lines in main.py:

inputFilename = "Input1.xls"
outputFilename = "Output-1.xls"

Red values in the output represent constrained results (by MaxIncr or MaxDecr).

Use python3 -i main.py to stay in python command shell after running the script.

To get the name of scenario n in the scenario list: scenarios[n].name To get the name of sector m in the sector list of scenario n: scenarios[m].name

You can also get the [e,t] evolution of sector m in scenario n:

scenarios[n].sectorsP[m].getData(iniYear,endYear)

For instance: scenarios[0].sectorsP[0].getData(2020,2030)

Or if you want to get the increase/decrease percentages year by year:

scenarios[0].sectorsP[0].m

eea-work-ghg-20-30-model's People

Contributors

angellareo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.