make_fractional_amp_potential¶
-
eridanus_pbh.utils.
make_fractional_amp_potential
(potential: (<class 'galpy.potential.Potential.Potential'>, <class 'galpy.potential.amuse.galpy_profile'>), amp_fraction: float, to_amuse: bool = False)[source]¶ Make Potential with fraction of original amplitude.
- Parameters
- potential: Potential or galpy_profile
- amp_fraction: float
- math
new_amp = amp_fraction * old_amp
- to_amuse: bool
whether to return an Amuse profile using galpy_profile
- Returns
- potential_adj: Potential or galpy_profile
amplitude-adjusted potential