Skip to content

Commit

Permalink
Merge pull request #1025 from metno/pages965
Browse files Browse the repository at this point in the history
Add pages argument to WebDisplayOpts class
  • Loading branch information
lewisblake authored May 28, 2024
2 parents b79e16d + 6189c5b commit 214a4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions pyaerocom/aeroval/experiment_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ def run(self, model_name=None, obs_name=None, var_list=None, update_interface=Tr
if not self.cfg.model_cfg:
logger.info("No model found, will make dummy model data")
self.cfg.webdisp_opts.hide_charts = ["scatterplot"]
self.cfg.webdisp_opts.hide_pages = [
"maps.php",
"intercomp.php",
"overall.php",
]
self.cfg.webdisp_opts.pages = ["evaluation", "infos"]
model_id = make_dummy_model(obs_list, self.cfg)
self.cfg.processing_opts.obs_only = True
use_dummy_model = True
Expand Down
2 changes: 1 addition & 1 deletion pyaerocom/aeroval/setupclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class WebDisplaySetup(BaseModel):
hide_charts: tuple[str, ...] = ()
hide_pages: tuple[str, ...] = ()
ts_annotations: dict[str, str] = Field(default_factory=dict)
add_pages: tuple[str, ...] = ()
pages: tuple[str, ...] = ["maps", "evaluation", "intercomp", "overall", "infos"]


class EvalRunOptions(BaseModel):
Expand Down

0 comments on commit 214a4fa

Please sign in to comment.