Skip to content

Commit a79b84a

Browse files
TST: update density doctest for new pressure_ISA discretization
The finer spline knots shift density at 1000 m by ~1e-4 (density at sea level is unchanged since 0 m is still sampled exactly). Update the calculate_density_profile doctest expected value accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4b36cfb commit a79b84a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rocketpy/environment/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ def calculate_density_profile(self):
26172617
>>> env = Environment()
26182618
>>> env.calculate_density_profile()
26192619
>>> float(env.density(1000))
2620-
1.1115112430077818
2620+
1.1116196671683787
26212621
"""
26222622
# Retrieve pressure P, gas constant R and temperature T
26232623
P = self.pressure

0 commit comments

Comments
 (0)