diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-21 19:40:57 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-21 19:40:57 -0700 |
commit | 6946f206a17c5155fc4e517d72c5674fb8cd759b (patch) | |
tree | e15496a9b94cd69664f0fc2eaded8c5b371149ac /evaluator.py | |
parent | 7729848607e1ea945a31b89b73f3a3b1c4034977 (diff) |
better print_info() file titles
Diffstat (limited to 'evaluator.py')
-rw-r--r-- | evaluator.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/evaluator.py b/evaluator.py index 01647a6..c21ca2e 100644 --- a/evaluator.py +++ b/evaluator.py @@ -60,14 +60,17 @@ class Airfoil: This function's output is piped to the 'save_data' function below. ''' - print(22 * '-') - print(' EVALUATOR DATA ') + name = ' CREATOR DATA ' + num_of_dashes = len(name) + + print(num_of_dashes * '-') + print(name) print('Evaluating:', self.airfoil) print('Chord length:', self.chord) print('Semi-span:', self.semi_span) print('Total airfoil mass:', self.mass_total) print('Centroid location:', np.around(self.centroid, round + 1)) - print(22 * '-') + print(num_of_dashes * '-') print('Rectangular lift:\n', np.around(self.lift_rectangular, round)) print('Elliptical lift:\n', np.around(self.lift_elliptical, round)) print('Combined lift:\n', np.around(self.lift, round)) |