id4_common.utils.transfocator_calculation#

Transfocator functions.

Module Contents#

id4_common.utils.transfocator_calculation.BE_REFR_INDEX_FILE = '/home/beams/POLAR/polar_instrument/src/instrument/utils/Be_refr_index.dat'#
id4_common.utils.transfocator_calculation.read_delta(energy=None, path=BE_REFR_INDEX_FILE)#

Return the refractive index delta for beryllium at the given photon energy (eV).

id4_common.utils.transfocator_calculation.transfocator_calc(distance=None, energy=None, experiment='diffractometer', beamline='polar', verbose=True)#

Calculate the CRL lens configuration for the requested focus distance and energy.

id4_common.utils.transfocator_calculation.transfocator_calc_old(distance=None, energy=None, experiment='diffractometer', beamline='polar')#

Calculate CRL lens configuration using the legacy (non-verbose) algorithm.