Skip to content

Commit

Permalink
Merge branch 'twopowertri' into stream-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jul 8, 2016
2 parents d646fdf + 3c58f77 commit dd65142
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions galpy/potential_src/TwoPowerTriaxialPotential.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,14 @@ def __init__(self,amp=1.,a=5.,alpha=1.5,beta=3.5,b=1.,c=1.,
return None

def _setup_zvec_pa(self,zvec,pa):
if not pa is None:
if _APY_LOADED and isinstance(pa,units.Quantity):
pa= pa.to(units.rad).value
if zvec is None and (pa is None or numpy.fabs(pa) < 10.**-10.):
self._aligned= True
else:
self._aligned= False
if not pa is None:
if _APY_LOADED and isinstance(pa,units.Quantity):
pa= pa.to(units.rad).value
pa_rot= numpy.array([[numpy.cos(pa),numpy.sin(pa),0.],
[-numpy.sin(pa),numpy.cos(pa),0.],
[0.,0.,1.]])
Expand Down

0 comments on commit dd65142

Please sign in to comment.