Skip to content

Commit

Permalink
self.ALLOWED_VERT_COORD_TYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Oct 2, 2023
1 parent 6016053 commit b6daae7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyaerocom/ungriddeddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class UngriddedData:

STANDARD_META_KEYS = STANDARD_META_KEYS

ALLOWED_VERT_CORD_TYPES = ["altitude"]
ALLOWED_VERT_COORD_TYPES = ["altitude"]

@property
def _ROWNO(self):
Expand Down Expand Up @@ -1731,7 +1731,7 @@ def _find_meta_matches(self, negate=None, *filters):
if self._check_filter_match(meta, negate, *filters):
meta_matches.append(meta_idx)
for var in meta["var_info"]:
if var in self.ALLOWED_VERT_CORD_TYPES:
if var in self.ALLOWED_VERT_COORD_TYPES:
continue # altitude is not actually a variable but is stored in var_info like one
try:
totnum += len(self.meta_idx[meta_idx][var])
Expand Down Expand Up @@ -1985,7 +1985,7 @@ def _new_from_meta_blocks(self, meta_indices, totnum_new):
new.metadata[meta_idx_new] = meta
new.meta_idx[meta_idx_new] = {}
for var in meta["var_info"]:
if var in ALLOWED_VERT_CORD_TYPES:
if var in self.ALLOWED_VERT_COORD_TYPES:
continue

Check warning on line 1989 in pyaerocom/ungriddeddata.py

View check run for this annotation

Codecov / codecov/patch

pyaerocom/ungriddeddata.py#L1989

Added line #L1989 was not covered by tests
indices = self.meta_idx[meta_idx][var]
totnum = len(indices)
Expand Down

0 comments on commit b6daae7

Please sign in to comment.