No Gate error when TPS plan file is ambiguous
Hi,
there is redundant information in the TPS plan file (/gate/source/PBS/setPlan data/tp/tpsPlanFile.txt). If the description does not match, it does not give an error. This is in principle ok, but it is not intuitive which information is read and which is "ignored" (is it?). as an example: if the number of spot is defined to be 1, all additional listed spots would be ignored without an error. this is tricky to debug.
#SPOTS-DESCRIPTION ####ControlPointIndex 0 ####SpotTunnedID 4.0 ####CumulativeMetersetWeight 0 ####Energy (MeV) 179.2 ####NbOfScannedSpots 1 ####X Y Weight 0.0000 0.0000 1.000e+09 2.0000 2.0000 1.000e+09 <-- this would be ignored without error
second example: cumulative weight: no error if it does not match. Gate v.8.0 develop (checked out 1-2 months after release)
two (or more?) potential fixes: a) remove redundant information b) include sanity checks => abort if not fulfilled (e.g. number of spots specified must be equal the number of spots listed)