-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
Milestone
Description
What can be improved?
Calliope should be more memory efficient! <- Finally this one is applicable
While checking how to better support sparsity in our ecosystem, I found about sparse. It is quite literally focused on the common use-case of super sparse data in ESOMs.
After some investigation, it seems like xarray either has, or is planning to, roll out support for this library: pydata/xarray#3213. pandas seems to have also rolled out support.
I propose to evaluate how to integrate this into calliope, with two key design goals in mind:
- Cut out "fattening" that happens in herently in
xarraysetups. - Find a way to refer to the
dimitself in our constraints for cases were they are ordered. Two use cases (for pathways):- Being able to do "sum from year X to year Y"
- Being able to do use "year current - year installed", and then use it as a reference to get a time-sensitive parameter that depends on it (e.g., by passing it to an inner function like gamma, a linear efficiency decrease, etc).
Version
v0.7