From 8202fe7e323b3f2ade911a828d4737b6ab34689f Mon Sep 17 00:00:00 2001 From: blendoit Date: Sun, 6 Oct 2019 15:14:53 -0700 Subject: Before Evaluator in-depth rewrite --- creator/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'creator') 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 -- cgit v1.2.3