Skip to content

Commit

Permalink
Change units of amp in SCF
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jul 18, 2016
1 parent d442df1 commit 9af62b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galpy/potential_src/SCFPotential.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, amp=1., Acos=nu.array([[[1]]]),Asin=nu.array([[[0]]]), a = 1.
INPUT:
amp - amplitude to be applied to the potential (default: 1); can be a Quantity with units of mass density or Gxmass density
amp - amplitude to be applied to the potential (default: 1); can be a Quantity with units of mass or Gxmass
Acos - The real part of the expansion coefficent (NxLxL matrix)
Expand All @@ -48,7 +48,7 @@ def __init__(self, amp=1., Acos=nu.array([[[1]]]),Asin=nu.array([[[0]]]), a = 1.
2016-05-13 - Written - Aladdin
"""
Potential.__init__(self,amp=amp/2.,ro=ro,vo=vo,amp_units='unitless')
Potential.__init__(self,amp=amp/2.,ro=ro,vo=vo,amp_units='mass')
if _APY_LOADED and isinstance(a,units.Quantity):
a= a.to(units.kpc).value/self._ro

Expand Down

0 comments on commit 9af62b8

Please sign in to comment.