Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake authored and thorbjoernl committed Jul 2, 2024
1 parent 6ed7bcb commit e6c9d66
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pyaerocom/aeroval/setupclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,11 @@ class EvalSetup(BaseModel):

_aux_funs: dict = {}

# proj_id: str
# exp_id: str
var_web_info: dict = {}

@computed_field
@cached_property
def proj_info(self) -> ProjectInfo:
# return ProjectInfo(
# proj_id=self.proj_id
# ) # special case because ProjectInfo only has one attrbibute proj_id which is required by EvalSetup
if not hasattr(self, "model_extra") or self.model_extra is None:
return ProjectInfo()
model_args = {
Expand All @@ -329,12 +324,9 @@ def proj_info(self) -> ProjectInfo:
@computed_field
@cached_property
def exp_info(self) -> ExperimentInfo:
# if not hasattr(self, "model_extra") or self.model_extra is None:
# return ExperimentInfo(exp_id=self.exp_id)
model_args = {
key: val for key, val in self.model_extra.items() if key in ExperimentInfo.model_fields
}
# model_args["exp_id"] = self.exp_id
return ExperimentInfo(**model_args)

@computed_field
Expand All @@ -355,7 +347,6 @@ def gridded_aux_funs(self) -> dict:
@cached_property
def path_manager(self) -> OutputPaths:
if not hasattr(self, "model_extra") or self.model_extra is None:
# return OutputPaths(proj_id=self.proj_id, exp_id=self.exp_id)
return OutputPaths()
model_args = {
key: val for key, val in self.model_extra.items() if key in OutputPaths.model_fields
Expand Down

0 comments on commit e6c9d66

Please sign in to comment.