Skip to content

Commit

Permalink
Merge pull request #1405 from metno/fix-obs-vert-types-alt
Browse files Browse the repository at this point in the history
Fix reference to OBS_VERT_TYPES_ALT
  • Loading branch information
lewisblake authored Nov 18, 2024
2 parents 7d8c517 + eac30f2 commit b15dadf
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[
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 b15dadf

Please sign in to comment.