common module

Common functions that are supposed to be imported in __init__.py and thus made available to all modules.

common.en_to_wl(energy)[source]

Convert photon energy (eV) to wavelength (m).

common.q_to_tth(q, wl)[source]

Convert q (1/m) to scattering angle (rad).

common.r_to_tth(r, dist)[source]

Convert detector radius (m) to scattering angle (rad).

common.tth_to_q(tth, wl)[source]

Convert scattering angle (rad) to q (1/m).

common.tth_to_r(tth, dist)[source]

Convert scattering angle (rad) to detector radius (m).

common.wl_to_en(wl)[source]

Convert wavelength (m) to photon energy (eV).