Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution file metadata not preserving tuples for multiple carriers when saved to NetCDF #65

Closed
brynpickering opened this issue Aug 11, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@brynpickering
Copy link
Member

If there are multiple carriers in or out for a technology (e.g. for CHP in urban scale model, both 'power' and 'heat' are carriers out) then a tuple of those carriers is given in the model.solution.metadata DataArray. This is produced without problem when working with Python interactively, but when working with a solution file, the tuples are all replaced with None.

This is the same part of processing the data that causes issue #54, so we probably want another way of mixing single and multiple carriers in a single DataArray.

@brynpickering
Copy link
Member Author

If the metadata DataArray is converted to a pandas DataFrame, then saved as HDF, it is possible to load it back with tuples intact.

@brynpickering brynpickering added this to the 0.6.0 milestone Oct 17, 2017
@brynpickering
Copy link
Member Author

We don't have tuples in the xarray of 0.6.0, favouring comma delimited strings in DataArrays, as these can be successfully parsed in all cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant