Skip to content

Commit

Permalink
Exclude u0 error from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jan 23, 2018
1 parent 0c3bb97 commit 03dbe89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galpy/potential_src/OblateStaeckelWrapperPotential.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self,amp=1.,pot=None,delta=0.5,u0=0.,ro=None,vo=None):
if _APY_LOADED and isinstance(delta,units.Quantity):
delta= delta.to(units.kpc).value/self._ro
self._delta= delta
if u0 is None:
if u0 is None: # pragma: no cover
raise ValueError('u0= needs to be given to setup OblateStaeckelWrapperPotential')
self._u0= u0
self._v0= numpy.pi/2. # so we know when we're using this
Expand Down

0 comments on commit 03dbe89

Please sign in to comment.