Giter Site home page Giter Site logo

update exiobase docs about pymrio HOT 3 OPEN

indecol avatar indecol commented on August 22, 2024
update exiobase docs

from pymrio.

Comments (3)

 avatar commented on August 22, 2024

I hope its fine to post this here. On the page https://pymrio.readthedocs.io/en/latest/notebooks/buildflowmatrix.html io.emissions.F requires an update. At least when I use list(io.get_extensions()) I get ['impacts', 'satellite']:

In[9]: list(exio3.get_extensions())
Out[9]: ['impacts', 'satellite']

Or is this database specific?

from pymrio.

konstantinstadler avatar konstantinstadler commented on August 22, 2024

Even more general this is pymrio instance specific. It just happens that when parsing of a MRIO I set this up in a certain way.
You could set this up as you want, rename after your liking

In [1]: import pymrio

In [2]: tt = pymrio.load_test()

In [3]: list(tt.get_extensions())
Out[3]: ['factor_inputs', 'emissions']

In [4]: tt.new_ext = tt.emissions

In [5]: list(tt.get_extensions())
Out[5]: ['factor_inputs', 'emissions', 'new_ext']

In [6]: del tt.emissions

In [7]: list(tt.get_extensions())
Out[7]: ['factor_inputs', 'new_ext']

In [8]: tt.new_ext
Out[8]: <pymrio.core.mriosystem.Extension at 0x7fdb12be97f0>

from pymrio.

 avatar commented on August 22, 2024

Got it. Thank you!

from pymrio.

Related Issues (20)

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.