diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-21 19:45:20 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-21 19:45:20 -0700 |
commit | 9780f7eabdce984692994250b8a179cff1dc135c (patch) | |
tree | 81ee5f9e3e781fc72c378cf08b44b7f6bdcde6a6 /evaluator.py | |
parent | 6946f206a17c5155fc4e517d72c5674fb8cd759b (diff) |
change print_info and save_info to info_print and info_save ere
Diffstat (limited to 'evaluator.py')
-rw-r--r-- | evaluator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/evaluator.py b/evaluator.py index c21ca2e..9a54120 100644 --- a/evaluator.py +++ b/evaluator.py @@ -53,7 +53,7 @@ class Airfoil: # Drag self.drag = [] - def print_info(self, round): + def info_print(self, round): ''' Print all the component's evaluated data to the terminal. @@ -78,14 +78,14 @@ class Airfoil: print('Drag:\n', np.around(self.drag, round)) return None - def save_info(self, save_dir_path, number): + def info_save(self, save_dir_path, number): '''Save all the object's coordinates (must be full path).''' file_name = 'airfoil_{}_eval.txt'.format(number) full_path = os.path.join(save_dir_path, file_name) try: with open(full_path, 'w') as sys.stdout: - self.print_info(6) + self.info_print(6) # This line required to reset behavior of sys.stdout sys.stdout = sys.__stdout__ print('Successfully wrote to file {}'.format(full_path)) |