From 5fe4af97538191e0ae609c4868572d9e9ec28ad6 Mon Sep 17 00:00:00 2001 From: uwe Date: Mon, 15 Aug 2016 10:31:00 +0200 Subject: [PATCH] remove example, that does not work --- examples/core/multiple_energysystems.py | 45 ------------------------- 1 file changed, 45 deletions(-) delete mode 100644 examples/core/multiple_energysystems.py diff --git a/examples/core/multiple_energysystems.py b/examples/core/multiple_energysystems.py deleted file mode 100644 index a0d2c8c07..000000000 --- a/examples/core/multiple_energysystems.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -""" -Simple oemof energysystem example with multiple energysystems - -Tested with oemof version 0.0.5 - -Info: -simon.hilpert@fh-flensburg.de -""" -import logging -from oemof.tools import logger -logger.define_logging() -msg = "This example does not work anymore and will be removed if not fixed " -msg += "until v0.1" -logging.error(msg) -exit(0) -from oemof.core import energy_system as es -from oemof.core.network.entities.buses import Bus -from oemof.core.network.entities.components import transports as transport - -# 1st system -sys1 = es.EnergySystem() -bus11 = Bus(uid="b11") - -# 2nd system -sys2 = es.EnergySystem() -bus21 = Bus(uid="b21") -bus22 = Bus(uid="b22") - -# 3rd system -sys3 = es.EnergySystem() - -# use entities from sys1 and sys2 -sys3.entities = sys1.entities + sys2.entities - -# connect buses with transport (adds transport object) -sys3.connect(bus11, bus21, in_max=10, out_max=9, eta=0.9, - transport_class=transport.Simple) - -# This bus is automatically added to the sys3 object as it is the last energy -# system object created -bus4 = Bus(uid="b4") - -# to add to other energysystem use .add() method -sys1.add(bus4)