From 0a21d71fd50466e281c5e205c49c77c34c726003 Mon Sep 17 00:00:00 2001 From: Brantegger Georg Date: Wed, 25 Jan 2023 08:50:42 +0100 Subject: [PATCH] calming python linter --- Ausgleichsbecken/Ausgleichsbecken_class_file.py | 6 ++++-- Druckrohrleitung/Druckrohrleitung_class_file.py | 6 ++++-- Turbinen/Turbinen_class_file.py | 9 +++++---- 3 files changed, 13 insertions(+), 8 deletions(-) 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