Skip to content

Commit

Permalink
fixing hhl_slits
Browse files Browse the repository at this point in the history
  • Loading branch information
MDecarabas committed Jun 26, 2024
1 parent 12545d7 commit f08d51e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/aps_8id_bs_instrument/devices/hhl_slits.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from ophyd import Device, EpicsMotor
from ophyd import FormattedComponent as FCpt
from ophyd import Component as Cpt

logger = logging.getLogger(__name__)
logger.info(__file__)
Expand Down Expand Up @@ -67,13 +68,13 @@ def __init__(

super().__init__(prefix, *args, **kwargs)

# class SlitAxis(Device):
# size = Cpt(EpicsMotor, "Size", labels={"motors"})
# center = Cpt(EpicsMotor, "Center", labels={"motors"})
class SlitAxis(Device):
size = Cpt(EpicsMotor, "Size", labels={"motors"})
center = Cpt(EpicsMotor, "Center", labels={"motors"})

# # Individual slit directions
# h = Cpt(SlitAxis, "h")
# v = Cpt(SlitAxis, "v")
# Individual slit directions
h = Cpt(SlitAxis, "h")
v = Cpt(SlitAxis, "v")

# Real motors that directly control the slits
pitch = FCpt(EpicsMotor, "{motor_prefix}:{_pitch_motor}", labels={"motors"})
Expand Down
Empty file.

0 comments on commit f08d51e

Please sign in to comment.