Errors#

The exceptions pyEMAPS raises when input data is invalid or a calculation fails. Each one has a message attribute with its error message.

exception pyemaps.errors.pyemapsError#

Bases: Exception

Reserved for future use; not raised.

exception pyemaps.errors.CrystalClassError(message)#

Bases: Exception

Raised when a crystal can’t be created, validated or loaded into the backend.

__init__(message)#
exception pyemaps.errors.XTLError(fn='', message='')#

Bases: Exception

Raised when a crystal data (.xtl) file can’t be read or has invalid data.

__init__(fn='', message='')#
exception pyemaps.errors.CIFError(fn='', message='')#

Bases: Exception

Raised when a CIF file can’t be read or has invalid data.

__init__(fn='', message='')#
exception pyemaps.errors.CellError(message)#

Bases: Exception

Base class for invalid cell constants.

__init__(message)#
exception pyemaps.errors.CellValueError(ty=0, cn='')#

Bases: CellError

Raised when a cell length or angle is invalid.

__init__(ty=0, cn='')#
exception pyemaps.errors.CellDataError(message='invalid cell data')#

Bases: CellError

Raised when the cell constants as a whole are invalid.

__init__(message='invalid cell data')#
exception pyemaps.errors.SPGError(message)#

Bases: Exception

Raised when space group data is invalid or can’t be identified.

__init__(message)#
exception pyemaps.errors.SPGITMumberNotInRangeError(nummax)#

Bases: SPGError

Raised when a space group number is out of range.

__init__(nummax)#
exception pyemaps.errors.SPGSettingNotInRangeError(setmax)#

Bases: SPGError

Raised when a space group setting is out of range.

__init__(setmax)#
exception pyemaps.errors.SPGInvalidDataInputError(message='Invalid Space group data entered')#

Bases: SPGError

Raised when space group data has the wrong form.

__init__(message='Invalid Space group data entered')#
exception pyemaps.errors.UCError(message='')#

Bases: Exception

Raised when the atoms in the unit cell are invalid.

__init__(message='')#
exception pyemaps.errors.DPError(message='')#

Bases: Exception

Raised when a kinematic diffraction pattern can’t be generated or is invalid.

__init__(message='')#
exception pyemaps.errors.PointError(message='')#

Bases: DPError

Raised when a Point is invalid.

__init__(message='')#
exception pyemaps.errors.LineError(message='')#

Bases: DPError

Raised when a Line (Kikuchi or HOLZ line) is invalid.

__init__(message='')#
exception pyemaps.errors.PIndexError(message='')#

Bases: DPError

Raised when an Index (Miller indices of a diffracted beam) is invalid.

__init__(message='')#
exception pyemaps.errors.DiskError(message='')#

Bases: DPError

Raised when a Disk (diffracted beam) is invalid.

__init__(message='')#
exception pyemaps.errors.DPListError(message='')#

Bases: Exception

Raised when a list of diffraction patterns, DPList, is invalid.

__init__(message='')#
exception pyemaps.errors.BlochError(message='')#

Bases: Exception

Raised when a dynamic diffraction simulation fails or its input is invalid.

__init__(message='')#
exception pyemaps.errors.EMCError(message='')#

Bases: Exception

Raised when microscope or simulation controls are invalid.

__init__(message='')#
exception pyemaps.errors.BlochListError(message='')#

Bases: Exception

Raised when a list of dynamic diffraction images, BImgList, is invalid.

__init__(message='')#
exception pyemaps.errors.StereodiagramError(message='')#

Bases: Exception

Raised when a stereodiagram can’t be generated.

__init__(message='')#
exception pyemaps.errors.MxtalError(message='')#

Bases: Exception

Raised when a crystal structure can’t be built, or its data is invalid.

__init__(message='')#
exception pyemaps.errors.CSFError(message='')#

Bases: Exception

Raised when structure factors can’t be calculated, or their input is invalid.

__init__(message='')#
exception pyemaps.errors.XDPImageError(message='')#

Bases: Exception

Raised when an experimental image (StackImage) is invalid or can’t be loaded or analyzed.

__init__(message='')#