PyJEM.femtus.detector

Pre-configuration is required on the FEMTUS UI. For details, please contact the FEMTUS.

PyJEM.femtus.detector.get_detector_command_name(det)

Returns the detector name and the command name.

Parameters:

det (str) – Detector name or command name.

Returns:

Detector command information.

Key

Type

Value

DetectorName

str

Display name.

Example:

"BF".

CommandName

str

Internal command identifier.

Example:

"_BF_1".

Return type:

dict

Note

If not configured in advance via software, it may return a 404 error.

Examples

>>> get_detector_command_name("BF")
{
    'DetectorName': 'BF',
    'CommandName': '_BF_1'
}
PyJEM.femtus.detector.get_scan_detector_command_names()

Returns all detector names and command names for scan detectors.

Returns:

List of scan detector entries.

Key

Type

Value

DetectorName

str

Display name.

Example:

"BF", "DF".

CommandName

str

Internal command identifier.

Example:

"_BF_1", "_DF_1".

Return type:

list[dict]

Note

If not configured in advance via software, it may return a 404 error.

Examples

>>> get_scan_detector_command_names()
[
    {
        'DetectorName': 'BF',
        'CommandName': '_BF_1'
    },
    {
        'DetectorName': 'DF',
        'CommandName': '_DF_1'
    }
]
PyJEM.femtus.detector.get_camera_command_names()

Return command names for camera devices.

Returns:

List of camera command entries.

Key

Type

Value

CameraName

str

Display name.

Example:

"Camera 1".

CommandName

str

Internal command identifier.

Example:

"_Camera_1".

Return type:

list[dict]

Note

If not configured in advance via software, it may return a 404 error.

Examples

>>> get_camera_command_names()
[
    {
        'CameraName': 'Camera 1',
        'CommandName': '_Camera_1'
    },
    {
        'CameraName': 'Camera 2',
        'CommandName': '_Camera_2'
    }
]