def setup(self): logging.disable(logging.CRITICAL) self.failed = False tix = pd.period_range('1970-01-01', periods=1, freq='H') self.es = ES(timeindex=tix)
def test_delayed_registration_when_setting_input(self): """`Edge` registration gets delayed until input and output are set. """ i, o = (Node("input"), Node("output")) with registry_changed_to(ES()): e = Edge(output=o) ok_(not e in Node.registry.groups.values()) e.input = i ok_(e in Node.registry.groups.values())
def setup(self): self.es = ES(groupings=solph.GROUPINGS) Node.registry = self.es
def setup(self): self.es = ES() Node.registry = self.es
def setup(self): self.energysystem = ES() Node.registry = self.energysystem
def test_depreciated_graph_call(): es = ES() om = Model(energysystem=es) warnings.filterwarnings('ignore', category=FutureWarning) graph.create_nx_graph(optimization_model=om)
def setup(self): self.es = ES(groupings=solph.GROUPINGS)
def setup(self): self.es = ES()