pymrio
pymrio copied to clipboard
update exiobase docs
Exiobase docs for version3 need to be updated to account for zenodo upload and download (see also #64 )
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?
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>
Got it. Thank you!