Skip to content

Commit

Permalink
Fix reference to OBS_VERT_TYPES_ALT
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Nov 15, 2024
1 parent 67e3f4d commit eac30f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyaerocom/colocation/colocator.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,9 @@ def _read_gridded(self, var_name, is_model):
def _try_get_vert_which_alt(self, is_model, var_name):
if is_model:
if self.colocation_setup.obs_vert_type in self.colocation_setup.OBS_VERT_TYPES_ALT:
return self.OBS_VERT_TYPES_ALT[self.colocation_setup.obs_vert_type]
return self.colocation_setup.OBS_VERT_TYPES_ALT[

Check warning on line 833 in pyaerocom/colocation/colocator.py

View check run for this annotation

Codecov / codecov/patch

pyaerocom/colocation/colocator.py#L833

Added line #L833 was not covered by tests
self.colocation_setup.obs_vert_type
]
raise DataCoverageError(f"No alternative vert type found for {var_name}")

def _check_remove_outliers_gridded(self, data, var_name, is_model):
Expand Down

0 comments on commit eac30f2

Please sign in to comment.