Skip to content

[ESSSANS] docs: replace the custom instrument view - #762

Open
jokasimr wants to merge 5 commits into
mainfrom
753
Open

jokasimr wants to merge 5 commits into
mainfrom
753

Conversation

@jokasimr

Copy link
Copy Markdown
Contributor

Fixes #753

@github-actions github-actions Bot added the esssans Issues for esssans. label Sep 24, 2026
@github-actions github-actions Bot changed the title docs: replace the custom instrument view [ESSSANS] docs: replace the custom instrument view Sep 24, 2026
Comment on lines +126 to +133
"times = [da.bins.coords['event_time_offset'] for da in data.values()]\n",
"time_bins = sc.linspace(\n",
" 'event_time_offset',\n",
" start=min(t.min() for t in times),\n",
" stop=max(t.max() for t in times),\n",
" num=201,\n",
")\n",
"dhist = data.hist(event_time_offset=time_bins)"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code had a different event_time_offset range for every detector.
That bug is caught by the scippneutron instrument_view automatically.
Here we use the known range directly instead.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esssans Issues for esssans.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[esssans] Replace loki instrument view with the generic scippneutron instrument view

1 participant