fineprint-global / fabio

Food and Agriculture Biomass Input-Output Tables
Other
16 stars 13 forks source link

Minor updates to the read class to make it version independent. #93

Closed Kajwan closed 1 year ago

Kajwan commented 1 year ago

Simplified parts of the code and edited some documentation.
It should now run for both the original version and new version of FABIO, as well as the calorie version. I am a bit unsure about the versioning, but I use "1.1" for the original version (years 1986-2013) and "1.2" for the new version (years 1986-2020). It also works for the calorie version of FABIO.

There is still room for improvement. It should be made independent of io_codes.csv and su_codes.csv files and instead produce that information based on items.csv, regions.csv, and information stored in the RDS files. In that way it will become more robust.

Kajwan commented 1 year ago

I forgot to update the main.py accordingly. I will make a new pull request.