From f4362c19817e83ad8f413ca5876a43815d6fa2ab Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Sun, 27 Dec 2020 09:07:43 -0600 Subject: [PATCH 1/2] REF fix deprecation warning --- meds/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meds/util.py b/meds/util.py index 98e8e78..3edb5f8 100644 --- a/meds/util.py +++ b/meds/util.py @@ -377,7 +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,0.0]).T + phat = numpy.array([-1.0*sinp,cosp,numpy.zeros_like(0.0)]).T return rhat,phat,-1.0*that From 4b9467a3eac0f6413e9180da0e0a76f588ac8b24 Mon Sep 17 00:00:00 2001 From: "Matthew R. Becker" Date: Sun, 27 Dec 2020 09:12:19 -0600 Subject: [PATCH 2/2] 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 -