at.lattice.options#

Global set of constants

Module Attributes

DConstant

Default values for AT algorithms

random

Random generators for AT

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

mpi#

True if MPI is active

openmp#

True if OpenMP is active

reset(attrname)#

Reset the attribute to its default value

random = <at.lattice.options._Random object>#

Random generators for AT

common#

random generator common to all threads

Type:

Generator

thread#

random generator specific to each thread

Type:

Generator

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