OSeMOSYS / CLEWs

CLEWs - A framework for Climate, Land, Energy and Water systems modelling
MIT License
1 stars 3 forks source link

Use **otoole** to read in model data #4

Open willu47 opened 4 years ago

willu47 commented 4 years ago

Visualisation script could use otoole to read in model data.

e.g.

from otoole import read_packaged_file
from otoole.preprocess. datafile_to_datapackage import read_in_datafile, convert_amply_to_dataframe

config = read_packaged_file("config.yaml", "otoole.preprocess")
amply_datafile = read_in_datafile(path_to_datafile, config)
dict_of_dataframes = convert_amply_to_dataframe(amply_datafile, config)

returns a dict of pandas DataFrames