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 /creator.py | |
parent | 7729848607e1ea945a31b89b73f3a3b1c4034977 (diff) |
better print_info() file titles
Diffstat (limited to 'creator.py')
-rw-r--r-- | creator.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -75,13 +75,16 @@ class Coordinates: This function's output is piped to the 'save_coord' function below. ''' - print(20 * '-') - print(' CREATOR DATA ') + name = ' CREATOR DATA ' + num_of_dashes = len(name) + + print(num_of_dashes * '-') + print(name) print('Component:', str(self)) print('Chord length:', self.chord) print('Semi-span:', self.semi_span) print('Mass:', self.mass) - print(20 * '-') + print(num_of_dashes * '-') print('x_u the upper x-coordinates:\n', np.around(self.x_u, round)) print('z_u the upper z-coordinates:\n', np.around(self.z_u, round)) print('x_l the lower x-coordinates:\n', np.around(self.x_l, round)) |