PyJEM.TEM3.exception

Created on Mon Jul 7 09:38:58 2025

@author: dmaekawa

class PyJEM.TEM3.exception.ErrorTypeKind(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Type of subsystem that raised the TEM error.

TEM = 1

Transmission Electron Microscope core subsystem.

EOS = 2

Electron Optical System subsystem.

Lens = 3

Lens control subsystem.

Def = 4

Deflector control subsystem.

Screen = 5

Screen control subsystem.

Camera = 6

Camera subsystem.

Gonio = 7

Goniometer subsystem.

PASYS = 10

PASYS subsystem.

HT = 16

High tension subsystem.

GUN = 17

Electron gun subsystem.

FEG = 18

Field emission gun subsystem.

Filter = 19

Energy filter subsystem.

Stage = 20

Stage control subsystem.

Detector = 21

Detector subsystem.

Apt = 22

Aperture subsystem.

Scan = 23

Scan subsystem.

MDS = 24

MDS subsystem.

VACUUM = 25

Vacuum subsystem.

NITROGEN = 26

Nitrogen subsystem.

Notify = 30

Notification subsystem.

general = 31

General category.

class PyJEM.TEM3.exception.ErrorCodeKind(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Error code returned from TEM APIs.

ARG = 1

Argument error.

BUSY = 3

Socket busy.

TIMEOUT = 10

Timeout error.

ALLOC = 11

Memory allocation error.

SOCKET = 12

Socket is not connected or has been disconnected.

TEMERR = 13

Error returned from the equipment.

NETDATA = 14

Data packet error.

GUNTYPE = 16

Unsupported gun type for this module.

I_ARG = 100

Internal parameter error.

property label
exception PyJEM.TEM3.exception.TEMError(code=None)

Bases: Exception

Parameters:

code (int)