Skip to content

Commit 42b9e27

Browse files
authored
fix: issue #477 (#478)
## Description Fix issue #477. Method shape missing from MissingDates ## What problem does this change solve? <!-- Describe if it's a bugfix, new feature, doc update, or breaking change --> ## What issue or task does this change relate to? <!-- link to Issue Number --> ## Additional notes ## <!-- Include any additional information, caveats, or considerations that the reviewer should be aware of. --> ***As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/*** By opening this pull request, I affirm that all authors agree to the [Contributor License Agreement.](https://github.com/ecmwf/codex/blob/main/Legal/contributor_license_agreement.md)
1 parent 5939d79 commit 42b9e27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/anemoi/datasets/data/missing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,8 @@ def forwards_subclass_metadata_specific(self) -> dict[str, Any]:
440440
Metadata specific to the subclass.
441441
"""
442442
return {"start": self.start, "end": self.end}
443+
444+
@property
445+
def shape(self) -> tuple[int, ...]:
446+
"""Return the shape of the dataset."""
447+
return (len(self),) + self.forward.shape[1:]

0 commit comments

Comments
 (0)