File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change
1
+ Fixed yt interface for gravity-only simulations
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ def astropy_to_yt(array):
227
227
return ds , source
228
228
229
229
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" )
231
231
232
232
233
233
return ds
Original file line number Diff line number Diff line change @@ -282,13 +282,11 @@ def halo_projection_array(
282
282
Customizable — can change which fields are plotted for which halos, their order,
283
283
weighting, etc., using `params`.
284
284
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.
292
290
293
291
Parameters
294
292
----------
You can’t perform that action at this time.
0 commit comments