diff options
author | blendoit <blendoit@gmail.com> | 2019-10-06 15:14:53 -0700 |
---|---|---|
committer | blendoit <blendoit@gmail.com> | 2019-10-06 15:14:53 -0700 |
commit | 8202fe7e323b3f2ade911a828d4737b6ab34689f (patch) | |
tree | a1c58b913d5c527e2b640c9dc6260ef74bee493f /creator | |
parent | bdf09276e757675e9c9d7874b46bdffdb137e3b8 (diff) |
Before Evaluator in-depth rewrite
Diffstat (limited to 'creator')
-rw-r--r-- | creator/base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/creator/base.py b/creator/base.py index 603bef7..c46b297 100644 --- a/creator/base.py +++ b/creator/base.py @@ -12,15 +12,17 @@ logging.basicConfig(filename='log.txt', class Aircraft: """This class tracks all sub-components and is fed to the evaluator.""" - def __init__(self, parent): + def __init__(self, parent, name): self.parent = parent + self.name = name + parent.aircrafts.append(name) class Component: """Basic component providing coordinates and tools.""" def __init__(self, parent, name): - self.name = str() self.parent = None + self.name = name self.x = np.array([]) self.z = np.array([]) self.material = None |