Bug #795
Error when setting a new sample
Start date:
13/11/2010
Due date:
% Done:
0%
Description
model.MBSpectrometerModel.resetQ
raises exception: safeQrlu=getVectorA()
is not safe if |safeQrlu| > |Ki| + |Kf| or |safeQrlu| < ||Ki| - |Kf||.
Suggested solution:
1) in resetQ()
, re-normalize Q so that |Q| corresponds to the current |Ki|,|Kf| and A4.
2) Make UB matrix available immediately upon setting a new current sample, in model.MBSpectrometerModel.setCurrentSample
.
History
#1 Updated by Saroun, Jan about 12 years ago
- Status changed from New to Resolved
model.MBSpectrometerModel.resetQ raises exception:
safeQrlu=getVectorA() is not safe if |safeQrlu| > |Ki| + |Kf| or |safeQrlu| < ||Ki| - |Kf||.
Solution:
1) in resetQ(), re-normalize Q so that |Q| corresponds to the current |Ki|,|Kf| and A4.
2) Make UB matrix available immediately upon setting a new current sample, in model.MBSpectrometerModel.setCurrentSample.