at.lattice.options#
Global set of constants
Module Attributes
- DConstant = <at.lattice.options._Dst object>#
Default values for AT algorithms
- XYStep#
Coordinate step for differentiation
- DPStep#
Momentum step for dispersion and chromaticity
- OrbConvergence#
Convergence criterion for orbit
- OrbMaxIter#
Max. number of iterations for orbit
- omp_num_threads#
Default number of OpenMP threads
- patpass_poolsize#
Default size of multiprocessing pool
- patpass_startmethod#
Default start method for the multiprocessing
- reset(attrname)#
Reset the attribute to its default value
- random = <at.lattice.options._Random object>#
Random generators for AT
- reset(seed=None)#
Reset the generators.
Examples
>>> at.random.common.random() 0.8699988509120198
Generates a random number in [0, 1) which is identical in all threads
>>> at.random.thread.normal(size=5) array([-0.02326275, -0.89806482, -1.69086929, -0.74399398, 0.70156743])
Generates an array of Gaussian random values which is specific to each thread