Skip to content

Issue357 skip layers - #359

Merged
mortenwh merged 5 commits into
masterfrom
issue357_skip_layers
May 8, 2026
Merged

Issue357 skip layers#359
mortenwh merged 5 commits into
masterfrom
issue357_skip_layers

Conversation

@mortenwh

@mortenwh mortenwh commented May 8, 2026

Copy link
Copy Markdown
Collaborator

Summary: closes #357

Related issue: #357

Suggested reviewer(s):

Reviewer checklist:

  • The headers of all files contain a reference to the repository license (i.e., "License: This file is part of py-mmd-tools, licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)")
  • 100% test coverage of new code - meaning:
    • The overall test coverage increased or remained the same as before
    • Every function is accompanied with a test suite
    • Tests are both positive (testing that the function work as intended with valid data) and negative (testing that the function behaves as expected with invalid data, e.g., that correct exceptions are thrown)
    • Functions with optional arguments have separate tests for all options
  • Examples are supported by doctests
  • All tests are passing
  • All names (e.g., files, classes, functions, variables) are explicit
  • Documentation (as docstrings) is complete and understandable

The checklist is based on the S-ENDA conventions and definition of done (see https://s-enda-documentation.readthedocs.io/en/latest/general_conventions.html). The above points are not necessarily relevant to all contributions. In that case, please add a short explanation to help the reviewer.

mortenwh and others added 5 commits May 8, 2026 15:08
…layers

Variables like 'relative_humidity_2m' were incorrectly excluded from WMS
layer lists because 'lat' is a substring of 'relative_humidity_2m'. The
test verifies that only exact coordinate variable names are filtered out.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Variables like 'relative_humidity_2m' were incorrectly excluded from WMS
layers because 'lat' is a substring of 'relative_humidity_2m'. The fix
uses exact matching instead of substring matching, checking both the
variable name and its standard_name against the skip list.

A variable named 'whatever' with standard_name 'longitude' is now also
correctly excluded, even though its variable name is not in the skip list.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The metno/mmd schema added a new optional element 'metadata_source'
(enum: Internal | External-Harvest) to mmd_strict.xsd. This adds the
corresponding entry to mmd_elements.yaml to fix the failing
TestMDDElementsInYAMLAndXSD.test_mmd_element in GitHub Actions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The metno/mmd schema added storage_expiry_date (xs:date, optional) as a
sub-element of storage_information_type in mmd_strict.xsd. This adds the
corresponding entry to mmd_elements.yaml to fix the failing
TestMDDElementsInYAMLAndXSD.test_mmd_element in GitHub Actions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mortenwh
mortenwh merged commit 9ceb151 into master May 8, 2026
7 checks passed
@mortenwh
mortenwh deleted the issue357_skip_layers branch May 8, 2026 15:49
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.

WMS Layers - False Positive Filtering of Variables with "lat" or "lon" Substrings

1 participant