def get_plan(self, source_id, params): self.logger('Using default plan') plan = PlanObject(params, source_id, Configurator.config_builder()) # here comes the logic around the params return plan
__author__ = 'moshebasanchig' from hydro import Configurator from hydro.base_classes import HydroStr, HydroDatetime, HydroList conf = Configurator.config_builder() conf.OPTIMIZER = 'TopologyInjectionOptimizer'
__author__ = 'yanivshalev' from hydro import Configurator from hydro.base_classes import HydroStr, HydroDatetime, HydroList conf = Configurator.config_builder() conf.OPTIMIZER = 'TestTopology' # TODO: this will have to come from the application level, e.g in hydro.initialize(conf_obj) conf.PLAN_ALLOWED_PARAMETERS = {'CLIENT_ID': {'type': HydroStr}, 'FROM_DATE': {'type': HydroDatetime}, 'TO_DATE': {'type': HydroDatetime}, 'EVENT_TYPES': {'type': HydroList} }