Skip to content

Commit

Permalink
refactor: replace HookRelay type with ModelHooks
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Jul 23, 2024
1 parent 082e271 commit 8be54bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/ngen_cal/src/ngen/cal/calibration_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
if TYPE_CHECKING:
from pandas import DataFrame
from pathlib import Path
from pluggy import HookRelay
from datetime import datetime
from typing import Tuple, Optional
from ngen.cal._hookspec import ModelHooks
from ngen.cal.model import EvaluationOptions
from ngen.cal.meta import JobMeta

Expand All @@ -25,7 +25,7 @@ class CalibrationSet(Evaluatable):
A HY_Features based catchment with additional calibration information/functionality
"""

def __init__(self, adjustables: Sequence[Adjustable], eval_nexus: Nexus, hooks: 'HookRelay', start_time: str, end_time: str, eval_params: 'EvaluationOptions'):
def __init__(self, adjustables: Sequence[Adjustable], eval_nexus: Nexus, hooks: ModelHooks, start_time: str, end_time: str, eval_params: 'EvaluationOptions'):
"""
"""
Expand Down Expand Up @@ -117,7 +117,7 @@ class UniformCalibrationSet(CalibrationSet, Adjustable):
A HY_Features based catchment with additional calibration information/functionality
"""

def __init__(self, eval_nexus: Nexus, hooks: 'HookRelay', start_time: str, end_time: str, eval_params: 'EvaluationOptions', params: dict = {}):
def __init__(self, eval_nexus: Nexus, hooks: ModelHooks, start_time: str, end_time: str, eval_params: 'EvaluationOptions', params: dict = {}):
"""
"""
Expand Down

0 comments on commit 8be54bd

Please sign in to comment.