Skip to content

Commit

Permalink
no a and rho together
Browse files Browse the repository at this point in the history
  • Loading branch information
nespinoza committed May 30, 2024
1 parent f39b3f2 commit be61151
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions juliet/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit be61151

Please sign in to comment.