Source code for ophyd_async.epics.demo.demo_ad_sim_detector

from typing import Sequence

from ophyd_async.core import PathProvider, SignalR, StandardDetector

from ..areadetector.controllers import ADSimController
from ..areadetector.drivers import ADBase, ADBaseShapeProvider
from ..areadetector.writers import HDFWriter, NDFileHDF


[docs] class DemoADSimDetector(StandardDetector): _controller: ADSimController _writer: HDFWriter def __init__( self, drv: ADBase, hdf: NDFileHDF, path_provider: PathProvider, name: str = "", config_sigs: Sequence[SignalR] = (), ): self.drv = drv self.hdf = hdf super().__init__( ADSimController(self.drv), HDFWriter( self.hdf, path_provider, lambda: self.name, ADBaseShapeProvider(self.drv), ), config_sigs=config_sigs, name=name, )