From 1e8f2782753d70da35c2122f6d4441f94ee94ed6 Mon Sep 17 00:00:00 2001 From: blendoit Date: Mon, 7 Oct 2019 21:14:10 -0700 Subject: Subcomponent tree and Evaluator analysis Made very good progress on component tree representation, and Evaluator analysis method. --- creator/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'creator/base.py') diff --git a/creator/base.py b/creator/base.py index 33ea680..4a794b7 100644 --- a/creator/base.py +++ b/creator/base.py @@ -5,7 +5,7 @@ import sys import os.path import logging -logging.basicConfig(filename='log.txt', +logging.basicConfig(filename='log_base.txt', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') @@ -34,6 +34,9 @@ class Component: self.material = None self.mass = float() + def __str__(self): + return self.name + def info_print(self, round): """Print all the component's coordinates to the terminal.""" name = f' CREATOR DATA FOR {str(self).upper()} ' -- cgit v1.2.3