diff --git a/Ausgleichsbecken/Ausgleichsbecken_class_file.py b/Ausgleichsbecken/Ausgleichsbecken_class_file.py index 69652dc..568be71 100644 --- a/Ausgleichsbecken/Ausgleichsbecken_class_file.py +++ b/Ausgleichsbecken/Ausgleichsbecken_class_file.py @@ -1,14 +1,16 @@ +import os +import sys from logging import exception + import numpy as np #importing pressure conversion function -import sys -import os current = os.path.dirname(os.path.realpath(__file__)) parent = os.path.dirname(current) sys.path.append(parent) from functions.pressure_conversion import pressure_conversion + def FODE_function(x_out,h,A,A_a,p,rho,g): # (FODE ... first order differential equation) # based on the outflux formula by Andreas Malcherek diff --git a/Druckrohrleitung/Druckrohrleitung_class_file.py b/Druckrohrleitung/Druckrohrleitung_class_file.py index 4ca2021..093ad9d 100644 --- a/Druckrohrleitung/Druckrohrleitung_class_file.py +++ b/Druckrohrleitung/Druckrohrleitung_class_file.py @@ -1,13 +1,15 @@ +import os +import sys + import numpy as np #importing pressure conversion function -import sys -import os current = os.path.dirname(os.path.realpath(__file__)) parent = os.path.dirname(current) sys.path.append(parent) from functions.pressure_conversion import pressure_conversion + class Druckrohrleitung_class: # units # make sure that units and display units are the same diff --git a/Turbinen/Turbinen_class_file.py b/Turbinen/Turbinen_class_file.py index de4db09..b39a01e 100644 --- a/Turbinen/Turbinen_class_file.py +++ b/Turbinen/Turbinen_class_file.py @@ -1,15 +1,16 @@ +import os +import sys + import numpy as np +from pyparsing import alphanums #importing pressure conversion function -import sys -import os - -from pyparsing import alphanums current = os.path.dirname(os.path.realpath(__file__)) parent = os.path.dirname(current) sys.path.append(parent) from functions.pressure_conversion import pressure_conversion + class Francis_Turbine: # units # make sure that units and display units are the same