Skip to content

Commit

Permalink
update beam center finder notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
nvaytet committed Mar 7, 2024
1 parent 9bdd50a commit 7c9f179
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/user-guide/common/beam-center-finder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"import scipp as sc\n",
"import plopp as pp\n",
"import sciline\n",
"import esssans as sans\n",
"from esssans import isis\n",
"from esssans.types import *"
"from ess import sans\n",
"from ess import isissans as isis\n",
"from ess.sans.types import *"
]
},
{
Expand Down Expand Up @@ -251,8 +251,8 @@
"params[NeXusMonitorName[Incident]] = 'monitor2'\n",
"params[NeXusMonitorName[Transmission]] = 'monitor4'\n",
"\n",
"params[sans.isis.SampleOffset] = sc.vector([0.0, 0.0, 0.053], unit='m')\n",
"params[sans.isis.MonitorOffset[Transmission]] = sc.vector([0.0, 0.0, -6.719], unit='m')\n",
"params[isis.SampleOffset] = sc.vector([0.0, 0.0, 0.053], unit='m')\n",
"params[isis.MonitorOffset[Transmission]] = sc.vector([0.0, 0.0, -6.719], unit='m')\n",
"\n",
"params[CorrectForGravity] = True\n",
"params[UncertaintyBroadcastMode] = UncertaintyBroadcastMode.upper_bound\n",
Expand All @@ -264,7 +264,7 @@
"providers.remove(sans.beam_center_finder.beam_center_from_center_of_mass)\n",
"providers.append(sans.beam_center_finder.beam_center_from_iofq)\n",
"\n",
"providers.append(sans.isis.data.transmission_from_sample_run)\n",
"providers.append(isis.data.transmission_from_sample_run)\n",
"\n",
"# Build the pipeline\n",
"pipeline = sciline.Pipeline(providers, params=params)\n",
Expand Down Expand Up @@ -427,7 +427,7 @@
"metadata": {},
"outputs": [],
"source": [
"from esssans.beam_center_finder import _iofq_in_quadrants\n",
"from ess.sans.beam_center_finder import _iofq_in_quadrants\n",
"\n",
"results = _iofq_in_quadrants(\n",
" xy=[0, 0],\n",
Expand Down Expand Up @@ -595,8 +595,7 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 7c9f179

Please sign in to comment.