COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
shesha.config.config_setter_utils Namespace Reference

Functions

def enforce_int (number)
 
def enforce_float (number)
 
def enforce_or_cast_bool (number)
 
def enforce_array (data, size, dtype=np.float32, scalar_expand=False)
 
def enforce_arrayMultiDim (data, shape, dtype=np.float32)
 

Function Documentation

◆ enforce_array()

def shesha.config.config_setter_utils.enforce_array (   data,
  size,
  dtype = np.float32,
  scalar_expand = False 
)

Definition at line 68 of file config_setter_utils.py.

◆ enforce_arrayMultiDim()

def shesha.config.config_setter_utils.enforce_arrayMultiDim (   data,
  shape,
  dtype = np.float32 
)

Definition at line 94 of file config_setter_utils.py.

◆ enforce_float()

def shesha.config.config_setter_utils.enforce_float (   number)

Definition at line 47 of file config_setter_utils.py.

◆ enforce_int()

def shesha.config.config_setter_utils.enforce_int (   number)

Definition at line 41 of file config_setter_utils.py.

◆ enforce_or_cast_bool()

def shesha.config.config_setter_utils.enforce_or_cast_bool (   number)

Definition at line 55 of file config_setter_utils.py.