File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11from abc import ABC , abstractmethod
22import warnings
33
4- import matplotlib .pyplot as plt
54import numpy as np
65from scipy .optimize import fsolve
76
@@ -426,12 +425,13 @@ def final_shape(x):
426425
427426 # Evaluate final geometry parameters
428427 self .shape_vec = [nosecone_x , nosecone_y ]
429- self ._length = nosecone_x [- 1 ]
430- print (
431- "Due to the chosen bluffness ratio, the nose cone length was reduced to {:.3f} m." .format (
432- self .length
428+ if abs (nosecone_x [- 1 ] - self .length ) >= 0.001 : # 1 milimiter
429+ print (
430+ "Due to the chosen bluffness ratio, the nose cone length was reduced to m." .format (
431+ self .length
432+ )
433433 )
434- )
434+ self . _length = nosecone_x [ - 1 ]
435435 self .fineness_ratio = self .length / (2 * self .base_radius )
436436
437437 return None
You can’t perform that action at this time.
0 commit comments