open-sdg / sdg-build

Python package to convert SDG-related data and metadata between formats
MIT License
6 stars 22 forks source link

InputSdmxMl_Structure fix: No ID needed on ObsDimension #300

Closed brockfanning closed 2 years ago

brockfanning commented 2 years ago
Q A
Feature branch/test site URL [Link](add link here)
Fixed issues N/A
Related version 2.0.0-dev
Bugfix, feature or docs? Bugfix

The SDMX Converter tool, when it is used to convert data to "GENERIC_DATA_2_1", produces SDMX which is supposed to be compatible with InputSdmxMl_Structure. However the tool does not assign an ID to the ObsDimension elements. But the InputSdmxMl_Structure class expects them to have an ID of "TIME_PERIOD". This PR removes that expectation, allowing the class to find those ObsDimension elements regardless of their ID.