mctools / ncrystal

NCrystal : a library for thermal neutron transport in crystals and other materials
https://mctools.github.io/ncrystal/
Other
41 stars 18 forks source link

Do not error on CIF files with multiple uisos at given position. #196

Open tkittel opened 2 months ago

tkittel commented 2 months ago

As reported during the Neuwave NCrystal workshop, it is possible to encounter CIF files with multiple uiso values for a particular spot (e.g. on position 0.5 0.5 0.5 one might find 40% Al with uiso=0.01 and 60% Cr with uiso=0.02). Currently this triggers an error (while we accept a mixed element if the two uiso values are the same.

We could instead simply average the uiso numbers and issue a warning.