def __init__(self, name: str, doc: Optional[str] = None) -> None: super().__init__( name=name, doc=doc, ) self.options = optiontools.Options() self.scriptfunctions = {}
from hydpy.auxs.networktools import RiverBasinNumbers from hydpy.auxs.networktools import RiverBasinNumbers2Selection from hydpy.auxs.statstools import bias_abs from hydpy.auxs.statstools import bias_rel from hydpy.auxs.statstools import calc_mean_time from hydpy.auxs.statstools import calc_mean_time_deviation from hydpy.auxs.statstools import corr from hydpy.auxs.statstools import evaluationtable from hydpy.auxs.statstools import hsepd from hydpy.auxs.statstools import hsepd_manual from hydpy.auxs.statstools import hsepd_pdf from hydpy.auxs.statstools import nse from hydpy.auxs.statstools import prepare_arrays from hydpy.auxs.statstools import std_ratio pub.options = optiontools.Options() pub.indexer = indextools.Indexer() pub.config = configutils.Config() dummies = dummytools.Dummies() # pylint: disable=invalid-name def customwarn(message, category, filename, lineno, file=None, line=None): """Redirect warnings to `stdout`.""" sys.stdout.write( warnings.formatwarning(message, category, filename, lineno)) warnings.showwarning = customwarn warnings.filterwarnings('always', category=HydPyDeprecationWarning) warnings.filterwarnings('ignore', r'All-NaN (slice|axis) encountered') warnings.filterwarnings('error', category=integrate.IntegrationWarning)
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.options: optiontools.Options = optiontools.Options() self.scriptfunctions: Dict[str, Callable] = {}