Ticket #1448 (closed: fixed)
Bug in NormaliseToCurrent(): Divide by zero
Reported by: | Nick Draper | Owned by: | Roman Tolchenov |
---|---|---|---|
Priority: | major | Milestone: | Iteration 24 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: | Sofia Antony |
Description
From Steve King:
There is a little issue with the NormaliseToCurrent() function in that it will happily attempt to divide by zero if the proton charge in the run is zero (which can happen if the beam is down and a run is ended)!
Can this be trapped please! Just returning zero or a negative number would be enough!
Actually perhaps gracefully failing the algorithm may be the best answer. Check what the current behaviour is
Change History
Note: See
TracTickets for help on using
tickets.