Implement v1.1 of CanSAS standard in SaveCansas1D and LoadCansas1D #7685
Labels
High Priority
An issue or pull request that if not addressed is severe enough to postponse a release.
Milestone
This ticket is blocks :
TRAC6929V1.1 of the canSAS XML reduced data file standard is now released (see link below).
http://www.cansas.org/svn/1dwg/trunk/doc/cansas-1d-1_1-manual.pdf
Please could the necessary changes to SaveCansas1D be ticketed, please.
I also attach a non-Mantid-generated example output file to show what the revised data files should look like.
The way I would envisage the new SaveCansas1D algorithm working is that when called to write a reduced 1D data workspace, Mantid checks to see if either or both of the transmissions (sample & can) used to calculate that data have been generated as part of the reduction process. If they have then they should be automatically inserted into the XML file. If they are not present (eg, the user has chosen to reduce data without transmisisons or has deleted both of the transmission workspaces associated with the reduction before choosing to write the file) then the file is written without any SAStransmission_spectrum blocks.
Note that it would be perfectly acceptable for a file to ONLY contain a sample transmission or a can transmission; though the latter case would indeed be odd, it is not forbidden; the former case would be quite common (a reduction without any can subtraction).
Any chance these changes could make it into the May release?
The text was updated successfully, but these errors were encountered: