Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jokasimr committed Aug 5, 2024
1 parent 0538b10 commit cf54781
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/user-guide/absorption-correction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@
"\n",
"class DummyMaterial:\n",
" 'This is probably not a good physical model, but it illustrates the interface'\n",
" def absorption_coefficient(wavelength):\n",
" def attenuation_coefficient(wavelength):\n",
" return sc.scalar(1, unit='1/(cm * angstrom)') * wavelength\n",
"\n",
"\n",
"sample_shape = Cylinder(\n",
" symmetry_line=sc.vector([0, 1, 0]),\n",
" center_of_base=sc.vector([0, -2, 0], unit='cm'),\n",
" radius=sc.scalar(1, unit='cm'),\n",
" height=sc.scalar(4, unit='cm')\n",
" center_of_base=sc.vector([0, -.5, 0], unit='cm'),\n",
" radius=sc.scalar(1., unit='cm'),\n",
" height=sc.scalar(1., unit='cm')\n",
")\n",
"\n",
"# Create some dummy detector positions.\n",
Expand All @@ -78,9 +78,9 @@
"## it's best for performance to not evaluate the correction for every detector element\n",
"## but instead to evaluate it over some grid of positions and\n",
"## interpolate to the positions of the detector elements.\n",
"theta = sc.linspace('theta', 0, np.pi, 100, endpoint=True, unit='rad')\n",
"phi = sc.linspace('phi', 0, 2 * np.pi, 200, endpoint=False, unit='rad')\n",
"r = sc.array(dims='r', values=[2.], unit='m')\n",
"theta = sc.linspace('theta', 0, np.pi, 60, endpoint=True, unit='rad')\n",
"phi = sc.linspace('phi', 0, 2 * np.pi, 120, endpoint=False, unit='rad')\n",
"r = sc.array(dims='r', values=[5.], unit='m')\n",
"dims = (*r.dims, *theta.dims, *phi.dims)\n",
"\n",
"# Detector positions in grid on a sphere around the origin\n",
Expand Down

0 comments on commit cf54781

Please sign in to comment.