示例#1
0
    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)
示例#2
0
 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())
示例#3
0
 def setup(self):
     self.es = ES(groupings=solph.GROUPINGS)
     Node.registry = self.es
示例#4
0
 def setup(self):
     self.es = ES()
     Node.registry = self.es
示例#5
0
 def setup(self):
     self.energysystem = ES()
     Node.registry = self.energysystem
示例#6
0
def test_depreciated_graph_call():
    es = ES()
    om = Model(energysystem=es)
    warnings.filterwarnings('ignore', category=FutureWarning)
    graph.create_nx_graph(optimization_model=om)
示例#7
0
 def setup(self):
     self.es = ES(groupings=solph.GROUPINGS)
示例#8
0
 def setup(self):
     self.es = ES()