Skip to content
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

changed TOF-related interfile keywords #62

Merged

Conversation

KrisThielemans
Copy link
Collaborator

use hopefully clearer names to avoid confusion when TOF mashing is used

  • new: "TOF mashing factor", old: "%TOF mashing factor" (no need for % in Interfile. In the original standard, % was used to specify a required keyword, but people misunderstood, and in any case, "TOF mashing factor" is not required)
  • new: "Maximum number of (unmashed) TOF time bins", old: "Number of TOF time bins"
  • new: "Size of unmashed TOF time bins (ps)", old: "Size of timing bin (ps)"

Old keywords are entered as aliases until STIR 7.0 (which means a warning will be issued if you use them).

@danieldeidda, @NicoleJurjew, @NikEfth, @robbietuk, what do you think about these new names?

Add facility to add an alias for a keyword. This just works by
looking-up the keyword in a map. This meansss type and callback
remain the same.

Also minor clean-up of test_KeyParser
use hopefully clearer names:

- new: "TOF mashing factor", old: "%TOF mashing factor"
- new: "Maximum number of (unmashed) TOF time bins", old: "Number of TOF time bins"
- new: "Size of unmashed TOF time bins (ps)", old: "Size of timing bin (ps)"

Old keywords are entered as aliases until STIR 7.0
@KrisThielemans KrisThielemans force-pushed the TOF_interfile_keywords branch from 91effad to 4192f33 Compare January 3, 2024 13:12
@robbietuk
Copy link

what do you think about these new names?

Looks good. Do these needed to be added to the docs/glossary?

@KrisThielemans
Copy link
Collaborator Author

That's a great idea. In fact, STIR-glossary.tex needs TOF info in other places. I'll have a look.

@KrisThielemans KrisThielemans merged commit fde976a into NikEfth:tof_sino_UCL Jan 4, 2024
@KrisThielemans KrisThielemans deleted the TOF_interfile_keywords branch January 4, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants