From cf54781a7c6d8f3abe4a6db60a3ef8cfc08af486 Mon Sep 17 00:00:00 2001 From: Johannes Kasimir Date: Mon, 5 Aug 2024 14:40:54 +0200 Subject: [PATCH] fix docs --- docs/user-guide/absorption-correction.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/user-guide/absorption-correction.ipynb b/docs/user-guide/absorption-correction.ipynb index 074067b96..fd56a675e 100644 --- a/docs/user-guide/absorption-correction.ipynb +++ b/docs/user-guide/absorption-correction.ipynb @@ -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", @@ -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",