diff options
author | blendoit <blendoit@gmail.com> | 2019-10-17 16:21:27 -0700 |
---|---|---|
committer | blendoit <blendoit@gmail.com> | 2019-10-17 16:21:27 -0700 |
commit | 24789ba35ae307650316b769eba7e68faa07546b (patch) | |
tree | 4565fec56fcc4a24e4100970fc713c969cec48b7 /evaluator | |
parent | c1d5e01169ab9972774989353453e6528dbdd9fa (diff) |
evaluator tree_print method
Diffstat (limited to 'evaluator')
-rw-r--r-- | evaluator/evaluator.py | 12 | ||||
-rw-r--r-- | evaluator/log_eval.txt | 0 |
2 files changed, 2 insertions, 10 deletions
diff --git a/evaluator/evaluator.py b/evaluator/evaluator.py index d4088b6..a668854 100644 --- a/evaluator/evaluator.py +++ b/evaluator/evaluator.py @@ -204,8 +204,8 @@ class Evaluator: # return None def tree_print(self): - """Print a list of subcomponents.""" - name = f" COMPONENT TREE FOR {[_.name for _ in self.aircrafts]} " + """Print the list of subcomponents.""" + name = f" TREE FOR {[_.name for _ in self.aircrafts]} IN {self.name} " num_of_dashes = len(name) print(num_of_dashes * '-') print(name) @@ -243,14 +243,6 @@ class Evaluator: print(f'Unable to write {file_name} to specified directory.\n', 'Was the full path passed to the function?') return None - try: - with open(full_path, 'w') as sys.stdout: - print('Successfully wrote to file {}'.format(full_path)) - except IOError: - print( - 'Unable to write {} to specified directory.\n'.format( - file_name), 'Was the full path passed to the function?') - return None def info_save(self, save_path, number): """Save all the object's coordinates (must be full path).""" diff --git a/evaluator/log_eval.txt b/evaluator/log_eval.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/evaluator/log_eval.txt |