Skip to content

Commit

Permalink
according to the documentation, this should be multiplied, not added
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonstrawn committed Mar 30, 2023
1 parent dd6870b commit 4889a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trident/absorption_spectrum/absorption_spectrum_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def _complex_fit(x, yDat, yFit, initz, minSize, errBound, speciesDict, maxNumCom
break

#If too many lines
if np.shape(linesP)[0]>maxNumComps or np.size(linesP)+3>=len(x):
if np.shape(linesP)[0]>maxNumComps or np.size(linesP)*3>=len(x):
#If its fitable by flag tools and still bad, use flag tools
if errSq >1E2*errBound and speciesDict['name']=='HI lya':
return [],True
Expand Down

0 comments on commit 4889a7e

Please sign in to comment.