Skip to content

Commit 9bfe463

Browse files
William HicksWillHicks96
authored andcommitted
added changelog
1 parent 6d5082f commit 9bfe463

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

changes/90.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed yt interface for gravity-only simulations

opencosmo/analysis/yt_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def astropy_to_yt(array):
227227
return ds, source
228228

229229
elif compute_xray_fields:
230-
raise RuntimeError("`compute_xray_fields` is only valid for hydro simulations!")
230+
raise RuntimeError("`compute_xray_fields` can only be used with hydrodynamic simulations")
231231

232232

233233
return ds

opencosmo/analysis/yt_viz.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,11 @@ def halo_projection_array(
282282
Customizable — can change which fields are plotted for which halos, their order,
283283
weighting, etc., using `params`.
284284
285-
.. note::
286-
287-
Dark matter particle masses often aren't stored for gravity-only simulations
288-
because the particles all have the same mass by construction. The particles are also
289-
labelled as ``gravity" particles in this case instead of ``dm" particles in the data.
290-
To project dark matter particles in gravity only, one can use the (``gravity", ``particle_ones")
291-
field in place of (``dm", ``particle_mass"). This will produce the same final image.
285+
**NOTE:** Dark matter particle masses often aren't stored for gravity-only simulations
286+
because the particles all have the same mass by construction. The particles are also
287+
labelled as "gravity" particles in this case instead of "dm" particles in the data.
288+
To project dark matter particles in gravity only, one can use the ``("gravity", "particle_ones")``
289+
field in place of ``("dm", "particle_mass")``. This will produce the same final image.
292290
293291
Parameters
294292
----------

0 commit comments

Comments
 (0)