Skip to content

Commit

Permalink
Fix metaindx shift after metadata filter
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Oct 1, 2024
1 parent 8086386 commit 9abd317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyaerocom/ungriddeddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,7 @@ def _new_from_meta_blocks(self, meta_indices, totnum_new):
stop = data_idx_new + totnum

new._data[data_idx_new:stop, :] = self._data[indices, :]
new._data[data_idx_new:stop, new._METADATAKEYINDEX] = meta_idx_new
new.meta_idx[meta_idx_new][var] = np.arange(data_idx_new, stop)
new.var_idx[var] = self.var_idx[var]
data_idx_new += totnum
Expand Down

0 comments on commit 9abd317

Please sign in to comment.