You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "", line 1, in
File ".venv/lib/python3.12/site-packages/anemoi/datasets/data/dataset.py", line 299, in typed_variables
constants = self.constant_fields
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Subset' object has no attribute 'constant_fields'
URL to sample input data
Provide a URL to a sample input data, or attach a file to that report if it is small enough.
Expected behavior
A clear and concise description of what you expected to happen.
subsetted ds should behave like those without it
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
ds.typed_variables no longer works when subsetting a dataset
** Version number **
I am using the following versions/branch/sha1 of the anemoi packages
(alternatively the output of
pip freeze
)anemoi-datasets==0.5.15
anemoi-transform==0.1.1
anemoi-utils==0.4.11
To Reproduce
Steps to reproduce the behavior:
filename = 'aifs-ea-an-oper-0001-mars-o96-1979-2022-6h-v6.zarr'
ds = open_dataset( filename)
dss = open_dataset( ds, frequency='6h', start='1980', end='2020')
tv = ds.typed_variables()
Traceback (most recent call last):
File "", line 1, in
File ".venv/lib/python3.12/site-packages/anemoi/datasets/data/dataset.py", line 299, in typed_variables
constants = self.constant_fields
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Subset' object has no attribute 'constant_fields'
URL to sample input data
Provide a URL to a sample input data, or attach a file to that report if it is small enough.
Expected behavior
A clear and concise description of what you expected to happen.
subsetted ds should behave like those without it
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: