File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ Keep it human-readable, your future self will thank you!
10
10
11
11
## [ Unreleased] ( https://github.com/ecmwf/anemoi-datasets/compare/0.5.8...HEAD )
12
12
13
+ ## Changed
14
+
15
+ - Fix metadata serialization handling of numpy.integer (#140 )
16
+ - Fix cutout slicing of grid dimension (#145 )
13
17
14
18
### Added
15
19
16
20
- Call filters from anemoi-transform
17
21
- make test optional when adls is not installed Pull request #110
18
- - Bugfix for numpy ints in metadata
19
-
20
22
21
23
## [ 0.5.8] ( https://github.com/ecmwf/anemoi-datasets/compare/0.5.7...0.5.8 ) - 2024-10-26
22
24
Original file line number Diff line number Diff line change @@ -289,14 +289,15 @@ def _get_tuple(self, index):
289
289
"""
290
290
index , changes = index_to_slices (index , self .shape )
291
291
# Select data from each LAM
292
- lam_data = [lam [index ] for lam in self .lams ]
292
+ lam_data = [lam [index [: 3 ] ] for lam in self .lams ]
293
293
294
294
# First apply spatial indexing on `self.globe` and then apply the mask
295
295
globe_data_sliced = self .globe [index [:3 ]]
296
296
globe_data = globe_data_sliced [..., self .global_mask ]
297
297
298
- # Concatenate LAM data with global data
299
- result = np .concatenate (lam_data + [globe_data ], axis = self .axis )
298
+ # Concatenate LAM data with global data, apply the grid slicing
299
+ result = np .concatenate (lam_data + [globe_data ], axis = self .axis )[..., index [3 ]]
300
+
300
301
return apply_index_to_slices_changes (result , changes )
301
302
302
303
def collect_supporting_arrays (self , collected , * path ):
You can’t perform that action at this time.
0 commit comments