COMCIFS / Powder_Dictionary

CIF definitions for powder diffraction
4 stars 4 forks source link

updating of calc/meas/proc/.count/intensity definitions #49

Closed rowlesmr closed 1 year ago

rowlesmr commented 1 year ago

Was initially looking just to address #42 .

But I now have other questions:

jamesrhester commented 1 year ago

I like the changes made so far in this pull request.

_pd_calc.intensity_net and _pd_proc.intensity_net should certainly be calculated in the same way in order to be directly comparable, so I agree that they should be both normalised and background-subtracted.

I think restricting _pd_calc.intensity_net values to be >= zero is defensible. I would leave the other one unrestricted in recognition of the fact that current software does not always treat values close to zero in a way that would avoid small negative values, which would involve a bit of not-very-advanced Bayesian footwork. I am open to be convinced otherwise and don't really care either way.

The _pd_proc equivalents are missing because, as suggested, these _pd_meas data names have been used to calculate the total/net/norm intensities which the refinement works on. I don't see any need to add the equivalents.

If everyone is happy with these replies I think we can merge these changes.

rowlesmr commented 1 year ago

I've removed the enumeration range on _pd_proc.intensity_net, added some words in the description of _pd_proc.intensity_background/container/monitor talking about _pd_proc.intensity_net/norm/total, and clarified the bkg/norm correction for _pd_proc.intensity_norm/net.

I think that covered everything.