Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Apr 17, 2024
1 parent cdd69de commit 7ddb187
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
from typing import Optional

from ophyd_async.core.async_status import AsyncStatus
from ophyd_async.core.detector import DetectorControl, DetectorTrigger
from ophyd_async.epics.areadetector.drivers.ad_base import (
Expand Down Expand Up @@ -27,7 +28,8 @@ def __init__(

def get_deadtime(self, exposure: float) -> float:
# Cite: https://media.dectris.com/User_Manual-PILATUS2-V1_4.pdf
"""The required minimum time difference between ExpPeriod and ExpTime (readout time) is 2.28 ms"""
"""The required minimum time difference between ExpPeriod and ExpTime
(readout time) is 2.28 ms"""
return 2.28e-3

async def arm(
Expand Down
8 changes: 3 additions & 5 deletions tests/epics/areadetector/test_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
PilatusController,
)
from ophyd_async.epics.areadetector.drivers import ADBase, PilatusDriver
from ophyd_async.epics.areadetector.drivers.pilatus_driver import (
TriggerMode as PilatusTrigger,
)
from ophyd_async.epics.areadetector.drivers.pilatus_driver import PilatusTriggerMode
from ophyd_async.epics.areadetector.utils import ImageMode


Expand Down Expand Up @@ -53,10 +51,10 @@ async def test_pilatus_controller(RE, pilatus: PilatusController):
with patch("ophyd_async.core.signal.wait_for_value", return_value=None):
await pilatus.arm(num=1, trigger=DetectorTrigger.constant_gate)

driver = pilatus.driver
driver = pilatus._drv
assert await driver.num_images.get_value() == 1
assert await driver.image_mode.get_value() == ImageMode.multiple
assert await driver.trigger_mode.get_value() == PilatusTrigger.ext_enable
assert await driver.trigger_mode.get_value() == PilatusTriggerMode.ext_enable
assert await driver.acquire.get_value() is True

with patch(
Expand Down

0 comments on commit 7ddb187

Please sign in to comment.