Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 15, 2024
1 parent e568c9a commit b24a3c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/source/reference/df.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ The distribution function of a tidal stream using a particle-spray technique
----------------------------------------------------------------------------

Model from `Chen et al. (2024)
<https://ui.adsabs.harvard.edu/abs/2024arXiv240801496C/abstract>`__ and
<https://ui.adsabs.harvard.edu/abs/2024arXiv240801496C/abstract>`__ and
`Fardal et al. (2015)
<https://ui.adsabs.harvard.edu/abs/2015MNRAS.452..301F/abstract>`__ with full
details of the ``galpy`` implementation given in `Qian et al. (2022)
Expand Down
12 changes: 6 additions & 6 deletions doc/source/streamdf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ as a simple ``LogarithmicHaloPotential``):
>>> o= Orbit([1.56148083,0.35081535,-1.15481504,0.88719443,-0.47713334,0.12019596])
>>> lp= LogarithmicHaloPotential(normalize=1.,q=0.9)

Then, we setup ``chen24spraydf`` and ``fardal15spraydf`` models for the leading
Then, we setup ``chen24spraydf`` and ``fardal15spraydf`` models for the leading
and trailing arm of the stream:

>>> from astropy import units
Expand All @@ -557,15 +557,15 @@ potential. Here, we use a Plummer potential for the prognenitor:
>>> orbs_c24,dt_c24= spdf_c24.sample(n=300,returndt=True,integrate=True, pot_prog=pot_prog)
>>> orbts_c24,dt_c24= spdft_c24.sample(n=300,returndt=True,integrate=True, pot_prog=pot_prog)

which returns a ``galpy.orbit.Orbit`` instance with all 300 stars. Next, we
which returns a ``galpy.orbit.Orbit`` instance with all 300 stars. Next, we
sample stars with ``fardal15spraydf`` without the progenitor's potential:

>>> orbs_f15,dt= spdf_f15.sample(n=300,returndt=True,integrate=True)
>>> orbts_f15,dt= spdft_f15.sample(n=300,returndt=True,integrate=True)

We can plot the ``galpy.orbit.Orbit`` instance in :math:`Z` versus :math:`X`
and compare to Fig. 1 in Bovy (2014). First, we also integrate the orbit of the
progenitor forward and backward in time for a brief period to show its location
We can plot the ``galpy.orbit.Orbit`` instance in :math:`Z` versus :math:`X`
and compare to Fig. 1 in Bovy (2014). First, we also integrate the orbit of the
progenitor forward and backward in time for a brief period to show its location
in the area of the stream:

>>> ts= numpy.linspace(0.,3.,301)
Expand All @@ -590,7 +590,7 @@ which gives
We can also compare to the track for this stream as predicted by ``streamdf``.
For this, we first setup a similar ``streamdf`` model (they are not exactly
the same, as ``streamdf`` uses a velocity dispersion to set the progenitor's
mass, while ``fardal15spraydf`` and ``chen15spraydf`` uses the mass directly);
mass, while ``fardal15spraydf`` and ``chen15spraydf`` uses the mass directly);
see the ``streamdf`` documentation for a full explanation of this code:

>>> from galpy.actionAngle import actionAngleIsochroneApprox
Expand Down

0 comments on commit b24a3c6

Please sign in to comment.