Skip to content

Commit

Permalink
thrust axis domain |0.5 pi| #165
Browse files Browse the repository at this point in the history
  • Loading branch information
jacanchaplais committed Nov 7, 2023
1 parent 1ad61fe commit 1c9ccdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphicle/calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,8 @@ def thrust(
axis : ndarray[float64], optional
The x, y, and z components of the thrust axis, respectively.
"""
domain = (0.0, 0.5 * math.pi)
half_pi = 0.5 * math.pi
domain = (-half_pi, half_pi)
rng = np.random.default_rng(seed=rng_seed)
guess = rng.uniform(*domain, size=2)
optim = spo.minimize(
Expand Down

0 comments on commit 1c9ccdc

Please sign in to comment.