Files
Python-DT_Slot_3/Kraftwerk/Kraftwerk_class_file.py
Brantegger Georg d1c15090dc code cleanup:
consistenly use getter and setter methods
commenting etc
2022-07-27 11:40:58 +02:00

20 lines
547 B
Python

#importing Druckrohrleitung
import sys
import os
current = os.path.dirname(os.path.realpath('Main_Programm.ipynb'))
parent = os.path.dirname(current)
sys.path.append(parent)
from functions.pressure_conversion import pressure_conversion
from Turbinen.Turbinen_class_file import Francis_Turbine
class Kraftwerk_class:
def __init__(self):
self.turbines = []
def add_turbine(self,turbine):
self.turbines.append(turbine)
def print_info(self):
for turbine in self.turbines:
turbine.get_info(full=True)