From b6cbe69cd70050bd88c789b3b80131bb87bc7886 Mon Sep 17 00:00:00 2001 From: blendoit Date: Wed, 2 Oct 2019 00:37:15 -0700 Subject: Folder structure --- creator/__init__.py | 9 ++++++++- creator/base.py | 10 +++++----- creator/wing.py | 8 -------- 3 files changed, 13 insertions(+), 14 deletions(-) (limited to 'creator') diff --git a/creator/__init__.py b/creator/__init__.py index 6fc3a2c..7662f94 100644 --- a/creator/__init__.py +++ b/creator/__init__.py @@ -1 +1,8 @@ -__all__ = ['base', 'fuselage', 'propulsion', 'wing'] +from . import base +from . import fuselage +from . import propulsion +from . import wing +# import creator.base +# import creator.fuselage +# import creator.propulsion +# import creator.wing diff --git a/creator/base.py b/creator/base.py index 91d4c70..2566a6b 100644 --- a/creator/base.py +++ b/creator/base.py @@ -9,6 +9,11 @@ logging.basicConfig(filename='log.txt', format='%(asctime)s - %(levelname)s - %(message)s') +class Aircraft: + """This class tracks all sub-components and is fed to the evaluator.""" + pass + + class Component: """Basic component providing coordinates and tools.""" @@ -52,8 +57,3 @@ class Component: print(f'Unable to write {file_name} to specified directory.\n', 'Was the full path passed to the function?') return None - - -class Aircraft: - """This class tracks all sub-components and is fed to the evaluator.""" - pass diff --git a/creator/wing.py b/creator/wing.py index be8e18a..8178366 100644 --- a/creator/wing.py +++ b/creator/wing.py @@ -316,11 +316,3 @@ def plot_geom(airfoil, spars, stringers): bbox_transform=plt.gcf().transFigure) plt.show() return fig, ax - - -def main(): - return None - - -if __name__ == '__main__': - main() -- cgit v1.2.3