From be61151797442517af35a04311b29708e0434f83 Mon Sep 17 00:00:00 2001 From: Nestor Espinoza Date: Thu, 30 May 2024 14:05:50 -0400 Subject: [PATCH] no a and rho together --- juliet/fit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/juliet/fit.py b/juliet/fit.py index 3dfaf86..df1c6df 100644 --- a/juliet/fit.py +++ b/juliet/fit.py @@ -3973,6 +3973,11 @@ def __init__(self, self.model[instrument]['p' + str(i)] = np.ones( len(self.instrument_indexes[instrument])) + # First, check some edge cases of user input error. First, if user decided to use a_p1 and rho, raise an error: + if ('a_p1' in self.priors.keys()) and ('rho' in self.priors.keys()): + + raise Exception('Priors currently define a_p1 (a/Rstar) and rho (stellar density) --- these are redundant. Please choose to fit either a_p1 or rho in your fit.') + # Now proceed with instrument namings: for pname in self.priors.keys(): # Check if variable name is a limb-darkening coefficient: