Skip to content

Update lookup table generating tool using tof. #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

YooSunYoung
Copy link
Member

CL needed this and the current notebook didn't work with the latest packages anymore.

I just updated it to be same as the one I made for easyimaging.

")\n",
"# Set tof simulation parameters\n",
"wf[DiskChoppers[SampleRun]] = sc.DataGroup(disk_choppers) # Mapping of chopper names to `DisckChopper` objects\n",
"wf[Position[snx.NXsource, SampleRun]] = sc.vector([0, 0, 0], unit='m') # Position of the source, which is usually at the origin\n",
Copy link
Member

Choose a reason for hiding this comment

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

No, the source is usually not at the origin. It looks like the hard-coded choppers in the package are placed relative to the source, i.e., with the source in the origin. But that will not be the case when we load them from NeXus.

So leave the parameter but please remove/update the comment.

"id": "12",
"metadata": {},
"source": [
"## Load the file"
Copy link
Member

Choose a reason for hiding this comment

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

Why did you add this here? This notebook is not a user-guide. That is what https://scipp.github.io/essreduce/user-guide/tof/index.html is for. Can you instead put a link to that page at the top of the notebook?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to link to an example that uses the time_of_flight.TofLutProvider.FILE mode but I couldn't find one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants