Skip to content

Commit 5362247

Browse files
authored
BUG: change order of print and length set
1 parent 76b8784 commit 5362247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/rocket/aero_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ def final_shape(x):
426426
# Evaluate final geometry parameters
427427
self.shape_vec = [nosecone_x, nosecone_y]
428428
if abs(nosecone_x[-1] - self.length) >= 0.001: # 1 milimiter
429+
self._length = nosecone_x[-1]
429430
print(
430431
"Due to the chosen bluffness ratio, the nose cone length was reduced to m.".format(
431432
self.length
432433
)
433434
)
434-
self._length = nosecone_x[-1]
435435
self.fineness_ratio = self.length / (2 * self.base_radius)
436436

437437
return None

0 commit comments

Comments
 (0)