Skip to content

Commit

Permalink
web_interface_names
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Oct 7, 2024
1 parent ad02462 commit 895e833
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pyaerocom/aeroval/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_entry(self, key) -> object:

@property
@abc.abstractmethod
def web_iface_names(self) -> list:
def web_interface_names(self) -> list:
"""
List of webinterface names for
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ def get_web_interface_name(self, key):
return self[key].web_interface_name if self[key].web_interface_name is not None else key

@property
def web_iface_names(self) -> list:
def web_interface_names(self) -> list:
"""
List of web interface names for each obs entry
Expand Down Expand Up @@ -219,7 +219,7 @@ def get_entry(self, key) -> ModelEntry:
raise EntryNotAvailable(f"no such entry {key}")

@property
def web_iface_names(self) -> list:
def web_interface_names(self) -> list:
"""
List of web interface names for each obs entry
Expand Down
6 changes: 3 additions & 3 deletions 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_iface_names
models_in_exp = self.cfg.model_cfg.web_interfaceface_names
if all([mod in models_in_exp for mod in models_avail]):
# nothing to clean up
return False
Expand Down Expand Up @@ -512,7 +512,7 @@ def get_model_order_menu(self) -> list:
)
order.extend(self.cfg.webdisp_opts.model_order_menu)
elif self.cfg.webdisp_opts.obsorder_from_config:
order.extend(self.cfg.model_cfg.web_iface_names)
order.extend(self.cfg.model_cfg.web_interface_names)
return order

def get_obs_order_menu(self) -> list:
Expand All @@ -526,7 +526,7 @@ def get_obs_order_menu(self) -> list:
)
order.extend(self.cfg.webdisp_opts.obs_order_menu)
elif self.cfg.webdisp_opts.obsorder_from_config:
order.extend(self.cfg.obs_cfg.web_iface_names)
order.extend(self.cfg.obs_cfg.web_interface_names)
return order

def _get_json_output_files(self, dirname) -> list[str]:
Expand Down

0 comments on commit 895e833

Please sign in to comment.