mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-06 03:40:41 +02:00
chore(formatter): upgrade to black v25
This commit is contained in:
parent
77e9f9b2f8
commit
673be87a2d
@ -1,5 +1,4 @@
|
||||
"""AreaDetector Devices
|
||||
"""
|
||||
"""AreaDetector Devices"""
|
||||
|
||||
# isort: skip_file
|
||||
from ophyd import EpicsSignal, EpicsSignalRO, EpicsSignalWithRBV
|
||||
|
@ -1,4 +1,4 @@
|
||||
""" Module for integrating the Stanford Research DG645 Delay Generator"""
|
||||
"""Module for integrating the Stanford Research DG645 Delay Generator"""
|
||||
|
||||
import enum
|
||||
import time
|
||||
|
@ -1,6 +1,6 @@
|
||||
"""
|
||||
This module contains the base class for custom device integrations at PSI.
|
||||
Please check the device section in BEC's developer documentation
|
||||
Please check the device section in BEC's developer documentation
|
||||
(https://bec.readthedocs.io/en/latest/) for more information about device integration.
|
||||
"""
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
""" This module provides a range of protocols that describe the expected
|
||||
"""This module provides a range of protocols that describe the expected
|
||||
interface for different types of devices.
|
||||
|
||||
The protocols below can be used as teamplates for functionality to be implemeted
|
||||
by different type of devices. They further facilitate runtime checks on devices
|
||||
The protocols below can be used as teamplates for functionality to be implemeted
|
||||
by different type of devices. They further facilitate runtime checks on devices
|
||||
and provide a minimum set of properties required for a device to be loadable by BEC.
|
||||
|
||||
The protocols are:
|
||||
@ -13,7 +13,7 @@ The protocols are:
|
||||
- BECPositionerProtocol: Protocol for positioners.
|
||||
- BECFlyerProtocol: Protocol with for flyers.
|
||||
|
||||
Keep in mind, that a device of type flyer should generally also implement the BECDeviceProtocol
|
||||
Keep in mind, that a device of type flyer should generally also implement the BECDeviceProtocol
|
||||
with the functionality needed for scans. In addition, flyers also implement the BECFlyerProtocol.
|
||||
Similarly, positioners should also implement the BECDeviceProtocol and BECPositionerProtocol.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
""" Module for simulated positioner devices. """
|
||||
"""Module for simulated positioner devices."""
|
||||
|
||||
import threading
|
||||
import time as ttime
|
||||
|
@ -1,4 +1,4 @@
|
||||
""" Utilities to mock and test devices."""
|
||||
"""Utilities to mock and test devices."""
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from unittest import mock
|
||||
|
@ -1,4 +1,4 @@
|
||||
""" Utility class linked to BEC"""
|
||||
"""Utility class linked to BEC"""
|
||||
|
||||
import time
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""Module for ophyd_devices specific errors. """
|
||||
"""Module for ophyd_devices specific errors."""
|
||||
|
||||
|
||||
class DeviceStopError(Exception):
|
||||
|
@ -31,7 +31,7 @@ dependencies = [
|
||||
dev = [
|
||||
"bec-server~=3.13",
|
||||
"pillow ~= 11.1",
|
||||
"black~=24.0",
|
||||
"black~=25.0",
|
||||
"isort~=5.13, >=5.13.2",
|
||||
"coverage~=7.0",
|
||||
"pylint~=3.0",
|
||||
|
@ -524,7 +524,7 @@ def test_proxy_config_and_props_stay_in_sync(h5proxy_fixture: tuple[H5ImageRepla
|
||||
|
||||
|
||||
def test_stage_camera_proxy_image_moves_with_samx_and_samy(
|
||||
stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner]
|
||||
stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner],
|
||||
):
|
||||
"""Test camera stage proxy to compute readback from readback of positioner samx and samy"""
|
||||
proxy, camera, samx, samy = stage_camera_proxy_fixture
|
||||
@ -542,7 +542,7 @@ def test_stage_camera_proxy_image_moves_with_samx_and_samy(
|
||||
|
||||
|
||||
def test_stage_camera_proxy_image_shape(
|
||||
stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner]
|
||||
stage_camera_proxy_fixture: tuple[StageCameraProxy, SimCamera, SimPositioner, SimPositioner],
|
||||
):
|
||||
"""Make sure that the produced image has the same shape as the detector being proxied"""
|
||||
proxy, camera, samx, samy = stage_camera_proxy_fixture
|
||||
|
Loading…
x
Reference in New Issue
Block a user