-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mx_bluesky_634_fix_pin_tip_detect
- Loading branch information
Showing
22 changed files
with
300 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from ophyd_async.core import StandardReadable | ||
from ophyd_async.epics.motor import Motor | ||
|
||
|
||
class VerticalGoniometer(StandardReadable): | ||
def __init__(self, prefix: str, name: str = "") -> None: | ||
self.x = Motor(prefix + "PINX") | ||
self.z = Motor(prefix + "PINZ") | ||
self.yh = Motor(prefix + "PINYH") | ||
self.omega = Motor(prefix + "OMEGA") | ||
|
||
self.real_x = Motor(prefix + "PINXS") | ||
self.real_z = Motor(prefix + "PINZS") | ||
self.fast_y = Motor(prefix + "PINYS") | ||
|
||
super().__init__(name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from ophyd_async.core import ConfigSignal, StandardReadable, StrictEnum | ||
from ophyd_async.epics.signal import epics_signal_rw | ||
|
||
|
||
class WatsonMarlow323PumpEnable(StrictEnum): | ||
DISABLED = "Disabled" | ||
ENABLED = "Enabled" | ||
|
||
|
||
class WatsonMarlow323PumpDirection(StrictEnum): | ||
CLOCKWISE = "CW" | ||
COUNTER_CLOCKWISE = "CCW" | ||
|
||
|
||
class WatsonMarlow323PumpState(StrictEnum): | ||
STOPPED = "STOP" | ||
STARTED = "START" | ||
|
||
|
||
class WatsonMarlow323Pump(StandardReadable): | ||
"""Watson Marlow 323 Peristaltic Pump device""" | ||
|
||
def __init__(self, prefix: str, name: str = "") -> None: | ||
with self.add_children_as_readables(): | ||
self.direction = epics_signal_rw( | ||
WatsonMarlow323PumpDirection, | ||
read_pv=prefix + "INFO:DIR", | ||
write_pv=prefix + "SET:DIR", | ||
) | ||
self.state = epics_signal_rw( | ||
WatsonMarlow323PumpState, | ||
read_pv=prefix + "INFO:RUN", | ||
write_pv=prefix + "SET:RUN", | ||
) | ||
self.speed = epics_signal_rw( | ||
float, read_pv=prefix + "INFO:SPD", write_pv=prefix + "SET:SPD" | ||
) | ||
|
||
with self.add_children_as_readables(ConfigSignal): | ||
self.enabled = epics_signal_rw( | ||
WatsonMarlow323PumpEnable, | ||
prefix + "DISABLE", | ||
) | ||
|
||
super().__init__(name=name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from dodal.utils import is_test_mode | ||
|
||
ZOCALO_ENV = "dev_bluesky" if is_test_mode() else "bluesky" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.