From 4b9467a3eac0f6413e9180da0e0a76f588ac8b24 Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Sun, 27 Dec 2020 09:12:19 -0600 Subject: [PATCH] Update meds/util.py --- meds/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meds/util.py b/meds/util.py index 3edb5f8..00a689c 100644 --- a/meds/util.py +++ b/meds/util.py @@ -377,8 +377,7 @@ def thetaphi_to_unitvecs_ruv(theta,phi): rhat = numpy.array([sint*cosp,sint*sinp,cost]).T that = numpy.array([cost*cosp,cost*sinp,-1.0*sint]).T - phat = numpy.array([-1.0*sinp,cosp,numpy.zeros_like(0.0)]).T + phat = numpy.array([-1.0*sinp,cosp,numpy.zeros_like(sinp)]).T return rhat,phat,-1.0*that -