Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Oct 7, 2024
1 parent 895e833 commit aff6d5e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pyaerocom/aeroval/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ class BaseCollection(BrowseDict, abc.ABC):
#: maximum length of entry names
MAXLEN_KEYS = 25
#: Invalid chars in entry names
FORBIDDEN_CHARS_KEYS = [] # "_"
FORBIDDEN_CHARS_KEYS = []

# TODO: Wait a few release cycles after v0.23.0 and see if this can be removed
def _check_entry_name(self, key):
if any([x in key for x in self.FORBIDDEN_CHARS_KEYS]):
raise EvalEntryNameError(
Expand Down
2 changes: 1 addition & 1 deletion pyaerocom/aeroval/experiment_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def _check_clean_ts_file(self, fp) -> bool:
return True

models_avail = list(data)
models_in_exp = self.cfg.model_cfg.web_interfaceface_names
models_in_exp = self.cfg.model_cfg.web_interface_names
if all([mod in models_in_exp for mod in models_avail]):
# nothing to clean up
return False
Expand Down
3 changes: 2 additions & 1 deletion pyaerocom/aeroval/obsentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class ObsEntry(BaseModel):
## Optional attributes
######################
obs_ts_type_read: str | dict | None = None
obs_vert_type: Literal["Column", "Profile", "Surface"] = "Surface"
obs_vert_type: Literal["Column", "Profile", "Surface", "ModelLevel"] = "Surface"
obs_aux_requires: dict[str, dict] = {}
instr_vert_loc: str | None = None
is_superobs: bool = False
Expand All @@ -115,6 +115,7 @@ class ObsEntry(BaseModel):
profile_layer_limits: tuple[LayerLimits, ...] | None = None
web_interface_name: str | None = None
diurnal_only: bool = False
obs_type: str | None = None

read_opts_ungridded: dict = {}
# attributes for reading colocated data files made outside of pyaerocom
Expand Down
3 changes: 2 additions & 1 deletion pyaerocom/aeroval/setup_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import datetime

from pyaerocom.aeroval.glob_defaults import VarWebInfo, VarWebScaleAndColormap
from pyaerocom.aeroval.obsentry import ObsEntry

if sys.version_info >= (3, 11):
from typing import Self
Expand Down Expand Up @@ -528,7 +529,7 @@ def serialize_model_cfg(self, model_cfg: ModelCollection):
## Methods
###########################

def get_obs_entry(self, obs_name):
def get_obs_entry(self, obs_name) -> ObsEntry:
"""Returns ObsEntry instance for network obs_name"""
return self.obs_cfg.get_entry(obs_name)

Expand Down

0 comments on commit aff6d5e

Please sign in to comment.