Skip to content

Commit

Permalink
Fix logic for switching to Keplerian behavior in DoubleExpDisk
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Aug 20, 2019
1 parent 3ac459d commit 1a1f9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galpy/potential/DoubleExponentialDiskPotential.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _evaluate(self,R,z,phi=0.,t=0.,dR=0,dphi=0):
floatIn= False
out= nu.empty(len(R))
indx= (R <= 6.)
if nu.sum(True^indx) > 1:
if nu.sum(True^indx) > 0:
out[True^indx]= self._kp(R[True^indx],z[True^indx])
R4max= nu.copy(R)
R4max[(R < 1.)]= 1.
Expand Down

0 comments on commit 1a1f9e0

Please sign in to comment.