From 4432d9188e28b7adea0d7b8abb3f70f941f768b2 Mon Sep 17 00:00:00 2001 From: Sarah Blunt Date: Tue, 3 Sep 2024 14:35:37 -0700 Subject: [PATCH] fix error message that was printing incorrectly but not affecting code --- orbitize/hipparcos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orbitize/hipparcos.py b/orbitize/hipparcos.py index fda8fde5..a3cab7d9 100644 --- a/orbitize/hipparcos.py +++ b/orbitize/hipparcos.py @@ -286,14 +286,14 @@ def __init__( else: iad = np.transpose(np.loadtxt(path_to_iad_file)) - n_lines = len(iad) - times = iad[1] + 1991.25 self.cos_phi = iad[3] # scan direction self.sin_phi = iad[4] self.R = iad[5] # abscissa residual [mas] self.eps = iad[6] # error on abscissa residual [mas] + n_lines = len(self.eps) + # reject negative errors (scans that were rejected by Hipparcos team) good_scans = np.where(self.eps > 0)[0]