Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jspilker/visilens
Browse files Browse the repository at this point in the history
  • Loading branch information
jspilker committed Jul 10, 2019
2 parents 9da44f9 + f8b3df4 commit 9e1b43e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions visilens/triangleplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def TrianglePlot_MCMC(mcmcresult,plotmag=True,plotnuisance=False):
nuisance = ['xL','yL','ampscale_dset','astromshift_x_dset','astromshift_y_dset']
allcols = list(mcmcresult['chains'].dtype.names)
# Gets rid of mag for unlensed sources, which is always 1.
for col in allcols:
if 'mu' in col and np.allclose(mcmcresult['chains'][col],1.): allcols.remove(col)
allcols = [col for col in allcols if not ('mu' in col and np.allclose(mcmcresult['chains'][col],1.))]
if not plotmag: allcols = [x for x in allcols if not 'mu' in x]
if not plotnuisance: allcols = [x for x in allcols if not any([l in x for l in nuisance])]

Expand Down

0 comments on commit 9e1b43e

Please sign in to comment.