From 91bd086f0244862c82ce63ccc7b4e4ac307d1d2d Mon Sep 17 00:00:00 2001 From: Jeffrey Lazar Date: Thu, 2 May 2024 20:11:01 +0200 Subject: [PATCH] Update radial.py Fix reference to old PROPOSAL vector object --- taurunner/track/radial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taurunner/track/radial.py b/taurunner/track/radial.py index 27cfb0a..b60cba9 100644 --- a/taurunner/track/radial.py +++ b/taurunner/track/radial.py @@ -33,13 +33,13 @@ def x_to_r(self, x: float): return x*(1-self.depth) def x_to_pp_dir(self, x: float): - dir_vec = pp.Vector3D(0, 0., 1.) + dir_vec = pp.Cartesian3D(0, 0., 1.) return dir_vec def x_to_pp_pos(self, x:float, rad: float): #compute direction and position in proposal body phi = 2.*self.theta - pos_vec = pp.Vector3D(0, + pos_vec = pp.Cartesian3D(0, 0, x*rad*(1-self.depth) )