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

Add SDMX input/output #21

Closed
khaeru opened this issue Feb 7, 2021 · 1 comment · Fixed by #115
Closed

Add SDMX input/output #21

khaeru opened this issue Feb 7, 2021 · 1 comment · Fixed by #115
Labels
compat:sdmx Compatibility with sdmx1 enh New feature or request

Comments

@khaeru
Copy link
Owner

khaeru commented Feb 7, 2021

This would add to .compat.sdmx operators like…

  • Convert sdmx.model.DataSet into Quantity.
  • Perform a specific SDMX query to retrieve data.
  • Convert Quantity into sdmx.model.DataSet.

Some issues to resolve here:

  1. Quantity.attrs map well to SDMX attributes attached at the level of an entire data set. However, one powerful feature of SDMX is the ability to attach attributes to individual observations. This does not have a natural analogue in the xarray (thus genno) data model.
@khaeru khaeru added the enh New feature or request label Feb 7, 2021
@khaeru
Copy link
Owner Author

khaeru commented Feb 16, 2021

  1. Quantity.attrs map well to SDMX attributes attached at the level of an entire data set. However, one powerful feature of SDMX is the ability to attach attributes to individual observations. This does not have a natural analogue in the xarray (thus genno) data model.

One initial way to resolve this would be to provide a feature to "merge" ≥2 Quantities together: one providing the observation values and others, of the same shape, providing attribute values.

Another way to support this would be to provide a generally "labeller" ("attributor") callback that attaches attributes to each observation.

In both of these designs, it is still up to the user to track and modify attributes through the graph of computations, unlike the automatic way units are handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compat:sdmx Compatibility with sdmx1 enh New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant