mxcubecore.HardwareObjects.BlissProxy

BLISS API Client - Access BLISS session and devices via BlissClient

Typical YAML configuration:

class: BlissProxy.BlissProxy
configuration:
  blissapi_url: http://mxcube-test-1:5000

Classes

BlissProxy(name)

Client for the BLISS REST API.

class mxcubecore.HardwareObjects.BlissProxy.BlissProxy(name)[source]

Bases: HardwareObject

Client for the BLISS REST API.

class HOConfig(*, blissapi_url: str | None = None, **extra_data: Any)[source]

Bases: HOConfig

Parameters:
  • blissapi_url (str | None)

  • extra_data (Any)

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

get_object(name: str) → None[source]

Return a hardware object by its BLISS name.

Parameters:

name (str) – Beacon address / BLISS object name.

Raises:

KeyError – If name is not registered in the session at all.

Return type:

None

init()[source]

‘public’ post-initialization method. Override as needed.

For ConfiguredObjects called after loading contained objects.

log_func(msg: str | None = None)[source]

Callback to get messages from bliss script and print it to log

Parameters:

msg (str | None)

objects_by_type() → dict[str, list[str]][source]

Return objects grouped by BLISS type.

Example:

{"Axis": ["dtox", "omega"], "SoftAxis": ["energy"]}
Return type:

dict[str, list[str]]