id4_common.utils.utilities#
Utility functions.
Module Contents#
- id4_common.utils.utilities.path#
- id4_common.utils.utilities.setaz(*args)#
Set azimuth in constant Psi geometry
- id4_common.utils.utilities.freeze(*args)#
Freeze angle to value in constant mu, omega, phi, chi and psi modes
- id4_common.utils.utilities.change_diffractometer(*args)#
Interactively prompt the user to switch the active diffractometer.
- id4_common.utils.utilities.plotselect(detector=None)#
Selects scalers plotted during scan
- id4_common.utils.utilities.set_counting_time(time=None, monitor=False)#
- Sets counting time / monitor counts:
time < 200: counting time in seconds time >= 200: monitor counts
Needs to be adapted to other detectors than scalers
- id4_common.utils.utilities.set_experiment(name=None, proposal_id=None, sample=None)#
Set experiment parameters.
- Parameters:
name (string, optional)
proposal_id (integer, optional)
sample (string, optional)
- id4_common.utils.utilities.list_functions(select=None)#
List available functions
- select: string, optional
None: all packages “absorption”: functions related to absorption experiments “diffraction”: functions related to diffraction experiments “hklpy”: functions related to reciprocal space