Skip to content

Commit

Permalink
Merge pull request #205 from VictorForouhar/patch-1
Browse files Browse the repository at this point in the history
Update docs for visualization tutorial
  • Loading branch information
robjmcgibbon authored Oct 8, 2024
2 parents 2496700 + 5fbff49 commit b40b144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/visualisation/projection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ of correctly applied units to these projections soon.
To use this feature for particle types that do not have smoothing lengths, you
will need to generate them, as in the example below where we create a
mass density map for dark matter. We provide a utility to do this through
:meth:`swiftsimio.visualisation.smoothing_length_generation.generate_smoothing_lengths`.
:meth:`swiftsimio.visualisation.smoothing_length.generate_smoothing_lengths`.

.. code-block:: python
from swiftsimio import load
from swiftsimio.visualisation.projection import project_pixel_grid
from swiftsimio.visualisation.smoothing_length_generation import generate_smoothing_lengths
from swiftsimio.visualisation.smoothing_length import generate_smoothing_lengths
data = load("cosmo_volume_example.hdf5")
Expand Down

0 comments on commit b40b144

Please sign in to comment.