Skip to content

Commit

Permalink
Backport PR yt-project#4592: Docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored and meeseeksmachine committed Jul 23, 2023
1 parent 4390674 commit 1cbfc72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/source/cookbook/fits_xray_images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
" field_parameters={\"exposure_time\": exposure_time},\n",
")\n",
"slc.set_log((\"fits\", \"flux\"), True)\n",
"slc.set_zlim((\"fits\", \"flux\"), 1e-5)\n",
"slc.set_log((\"gas\", \"pseudo_pressure\"), False)\n",
"slc.set_log((\"gas\", \"pseudo_entropy\"), False)\n",
"slc.set_width(250.0)\n",
Expand Down
4 changes: 2 additions & 2 deletions doc/source/examining/Loading_Generic_Particle_Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
" [[min(ppx), max(ppx)], [min(ppy), max(ppy)], [min(ppz), max(ppz)]]\n",
")\n",
"\n",
"ds = yt.load_particles(data, length_unit=parsec, mass_unit=1e8 * Msun, bbox=bbox)"
"ds = yt.load_particles(data, length_unit=1.0 * parsec, mass_unit=1e8 * Msun, bbox=bbox)"
]
},
{
Expand Down Expand Up @@ -184,7 +184,7 @@
"}\n",
"\n",
"ds2 = yt.load_particles(\n",
" data2, length_unit=parsec, mass_unit=1e8 * Msun, n_ref=256, bbox=bbox\n",
" data2, length_unit=1.0 * parsec, mass_unit=1e8 * Msun, n_ref=256, bbox=bbox\n",
")"
]
},
Expand Down

0 comments on commit 1cbfc72

Please sign in to comment.