carnisj / bcdi

BCDI: tools for pre(post)-processing Bragg coherent X-ray diffraction imaging data
Other
23 stars 17 forks source link

[FEAT] Use pint for unit conversion #213

Closed carnisj closed 1 year ago

carnisj commented 2 years ago

Calculations in functions rely on the fact that the user provides the correct unit, which is error prone.

Using pint would remove any ambiguity.

carnisj commented 1 year ago

Too much of an effort, pint should have been used from the very beginning.