From 0e30855347e2aa370149d55aef64a137f6e53be7 Mon Sep 17 00:00:00 2001 From: Sarah Blunt Date: Mon, 29 Jan 2024 18:07:18 -0800 Subject: [PATCH] fix bug causing unit test failures --- orbitize/hipparcos.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orbitize/hipparcos.py b/orbitize/hipparcos.py index 513421f1..938b91ec 100644 --- a/orbitize/hipparcos.py +++ b/orbitize/hipparcos.py @@ -217,6 +217,8 @@ def __init__( f2 = hip_cat["F2"][0] if self.solution_type == 1: self.var = hip_cat["var"][0] # [mas] + else: + self.var = 0 else: # read the Hipparcos best-fit solution from the IAD file @@ -242,6 +244,8 @@ def __init__( if self.solution_type == 1: self.var = astrometric_solution["var"].values[0] + else: + self.var = 0 f2 = solution_details["F2"].values[0]