Closed ElliotAOram closed 5 years ago
This would be better placed as an addition to the Material allowing something like the following:
number_of_atoms = ws.sample().getMaterial().getNumAtoms()
Can be closed as new approach is to follow the SNS lead on Total scattering
In total scattering analysis (as well as other scientific areas) it is required to normalise a sample data set by the number of atoms in that sample. This issue will cover implementing an algorithm to do this.
ws.sample().getMaterial().relativeMolecularMass()
atomic mass of the compound (g.mol-1) - True for single element materials, need to verify this for compounds Will require mass of sample Might also possibly packing fraction and beam parameters (what percentage of sample is in the beam?) - this however may be out of scope of a simple alg like this.Algorithm:
will review if this is an alg or just a one line for TS - depends on requirements elsewhere