-
Notifications
You must be signed in to change notification settings - Fork 124
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
SANS: Avoid warning messages from non assigned detectors #6916
Comments
Gesner Passos (2012-11-01T10:22:41): @NickDraper (2013-01-28T09:23:18): @NickDraper (2013-04-29T09:49:52): @NickDraper (2013-07-26T13:55:00): @NickDraper (2014-02-14T11:04:58): Gesner Passos (2014-03-06T09:18:26): Gesner Passos (2014-03-06T09:19:39): Gesner Passos (2014-03-06T15:42:21):
It will be impossible to crop those spectra from the workspace that is given to Q1D. I think the best option here would be to add a parameter inside the LOQ instrument to Have a hardcoded number of spectra that should be ignored. Or a parameter inside the IDF to tell to ignore some detectors not assigned. Gesner Passos (2014-03-06T15:43:34): |
http://trac.mantidproject.org/mantid/raw-attachment/ticket/6070/for-test.csv http://trac.mantidproject.org/mantid/raw-attachment/ticket/6070/user_file.txt http://trac.mantidproject.org/mantid/raw-attachment/ticket/6070/6070.patch |
This is still an issue it seems like the best way to fix it would be to modify the LOQ IDF to ignore the problematic spectra as Gesnet mentions above. It is not an issue with the new Backend as this runs Q1D as a child algorithm so gets no output from it. |
Closing as this relates to the old backend |
sans_code
This issue was originally TRAC 6070
Original Reporter: Gesner Passos
Running a Reduce1D for the front detector of LOQ or even SANS2D, you will end up with the following warning message:
== Workspace index 698 (SpectrumIndex = 17085) has no detector assigned to it - discarding ==
The same message will be given for the following range of spectrum indexes: 16735:16736, 17085:17086, 17435:17436, 17785:17792.
By the definition of the HAB detector inside the LOQ_Definition_2012101-.xml file:
It follows that the spectrum indexes are not inside the HAB detector.
In fact, according to the user, those spectrums are related to detectors spares or not in use.
So, although the algorithm (Q1D) correctly warns the user that those spectrums are not assigned, it would be better not to pass to this algorithm those spectrums, so to avoid the warning message.
Maybe the workspace should be cropped in order not to pass by these invalid spectrums.
To reproduce this:
Open SANS interface, set the instrument to LOQ, load the user file attached [user_file.txt], set to batch mode and load the [for-test.csv]
and run 1D Reduce.
The text was updated successfully, but these errors were encountered: