OSeMOSYS / osemosys2iamc

MIT License
3 stars 11 forks source link

Use `IamDataFrame` as return-type of `filter_*()` #21

Open danielhuppmann opened 2 years ago

danielhuppmann commented 2 years ago

After some more dabbling with the current codebase, I suggest using an IamDataFrame as the return-type directly of the filter_*() functions, something along following structure:

def filter_*(*args, **kwargs):
    data = ...  # processing from osemosys to dataframe
    return IamDataFrame(data, **kwargs)

In my opinion, this would have several benefits:

Happy to discuss here or in person at the ECEMF meeting!

willu47 commented 2 years ago

Great, thanks for taking the time to look at this @danielhuppmann