Skip to content

Commit

Permalink
Merge pull request #229 from low-sky/master
Browse files Browse the repository at this point in the history
Clean up warnings for round power spectrum with fixed ellipticity
  • Loading branch information
e-koch authored Oct 21, 2020
2 parents e1be535 + fa76479 commit bb6dfab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbustat/statistics/base_pspec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def fit_2Dpspec(self, fit_method='LevMarq', p0=(), low_cut=None,

# Add a warning that if ellip is close to 1 it may be worth fixing that
# parameter.
if self.ellip2D > 0.97:
if self.ellip2D > 0.97 and not fix_ellip_params:
warnings.warn("The elliptical parameter is close to 1. The field "
"may be isotropic and the fit is not converging to "
"1. Consider fitting with `fix_ellip_params=True`,"
Expand Down

0 comments on commit bb6dfab

Please sign in to comment.