it-is-me-mario / MARIO

Multifunctional Analysis of Regions through Input-Output
GNU General Public License v3.0
41 stars 13 forks source link

parse_exiobase bug when passing Exiobase hybrid folder #66

Closed nigolred closed 1 year ago

nigolred commented 1 year ago

I guess something went wrong in our attempt to create a single function for all databases in the Exiobase family. I am trying to use it to import the hybrid version:

path = C:/Users/nicog/Politecnico di Milano/DENG-SESAM - Documenti/DATASETS/Exiobase Hybrid 3.3.18
World = mario.parse_exiobase(path=path, unit='Hybrid', table='SUT')

Got this error: TypeError: type object got multiple values for keyword argument 'year'

I worked around by using the dedicated parsing function: World = mario.hybrid_sut_exiobase(path, extensions=["resource","Land","Emiss",])

mohammadamint commented 1 year ago

fixed thorugh pr #70