Skip to content

Commit

Permalink
Fixing #19 copying #20 to avoid large merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
nespinoza committed Aug 10, 2020
1 parent 7ddc33d commit 2160e0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion juliet/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,10 +1328,13 @@ def __init__(self, data, use_ultranest = False, use_dynesty = False, dynamic = F
else:
# For retro-compatibility, check for sigma_w_rv_instrument and add an extra variable on out
# for sigma_w_instrument:
out_temp = dict()
for pname in out['posterior_samples'].keys():
if 'sigma_w_rv' == pname[:10]:
instrument = pname.split('_')[-1]
out['posterior_samples']['sigma_w_'+instrument] = out['posterior_samples'][pname]
out_temp['sigma_w_'+instrument] = out['posterior_samples'][pname]
for pname in out_temp.keys():
out['posterior_samples'][pname] = out_temp[pname]
# Extract parameters:
for pname in self.posteriors.keys():
if data.priors[pname]['distribution'] != 'fixed':
Expand Down

0 comments on commit 2160e0d

Please sign in to comment.