IndEcol / pymrio

Multi-Regional Input-Output Analysis in Python.
http://pymrio.readthedocs.io/en/latest/
Other
161 stars 71 forks source link

update exiobase docs #65

Open konstantinstadler opened 3 years ago

konstantinstadler commented 3 years ago

Exiobase docs for version3 need to be updated to account for zenodo upload and download (see also #64 )

ghost commented 3 years ago

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?

konstantinstadler commented 3 years ago

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>
ghost commented 3 years ago

Got it. Thank you!