Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in minimum curvature method #9

Closed
JoshRosenstein opened this issue Oct 23, 2020 · 1 comment
Closed

Bug in minimum curvature method #9

JoshRosenstein opened this issue Oct 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@JoshRosenstein
Copy link

Hello, was just poking around and saw within your minimum curvature method , your beta has a small parentheses issue.

beta = np.arccos(
np.cos(inc_rad - inc_rad_shift - (np.sin(inc_rad_shift) *
np.sin(inc_rad) *
(1 - np.cos(azim_rad - azim_rad_shift))
)))

beta = np.arccos(
    np.cos(inc_rad - inc_rad_shift)
    - (np.sin(inc_rad_shift) * np.sin(inc_rad) * (1 - np.cos(azim_rad - azim_rad_shift)))
)
@bpamos
Copy link
Owner

bpamos commented Oct 27, 2020

Nice catch. It has been corrected.

@bpamos bpamos closed this as completed Oct 27, 2020
@bpamos bpamos added the bug Something isn't working label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants