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

Edrfixes - units #399

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Edrfixes - units #399

wants to merge 2 commits into from

Conversation

ernstdevreede
Copy link
Collaborator

Adds some metadata for units in CovJSON.

Copy link
Collaborator

@mgrunbauer mgrunbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test that asserts that the parameter description for a position and cube call are identical?

@@ -76,7 +76,8 @@ def covjson_from_resp(dats, vertical_name, custom_name, collection_name):
symbol = CovJsonSymbol(
value=param_metadata["parameter_unit"], type=SYMBOL_TYPE_URL
)
unit = CovJsonUnit(symbol=symbol)
unit_label = {"en": param_metadata["parameter_unit"]}
unit = CovJsonUnit(symbol=symbol, label=unit_label)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test test_collections in test_ogc_api_edr.py calls /edr/collections, but the response does not contain the new "en": ... label. Is this test still correct?

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

Successfully merging this pull request may close these issues.

4 participants