From 27318862c266caf51a96857864eaf3045f613dae Mon Sep 17 00:00:00 2001 From: Shreyas Bapat Date: Wed, 21 Feb 2018 15:34:38 +0530 Subject: [PATCH] Addresses Issue #295 --- src/poliastro/twobody/orbit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/poliastro/twobody/orbit.py b/src/poliastro/twobody/orbit.py index d66eb1297..35876ea85 100644 --- a/src/poliastro/twobody/orbit.py +++ b/src/poliastro/twobody/orbit.py @@ -305,6 +305,7 @@ def sample(self, values=None, function=propagate): # This corresponds to r = 3p nu_limit = np.arccos(-(1 - 1 / 3.) / self.ecc) nu_values = np.linspace(-nu_limit, nu_limit, values) + nu_values = np.add(nu_values, nu_limit) return self.sample(nu_values, function)