-
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.
- Loading branch information
1 parent
37cd4c1
commit a08d7e8
Showing
4 changed files
with
96 additions
and
2 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
File renamed without changes.
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,62 @@ | ||
from ophyd_async.core import StandardReadable | ||
from ophyd_async.epics.motor import Motor | ||
|
||
|
||
class PinHole(StandardReadable): | ||
"Two motors stage for rasor pinhole" | ||
|
||
def __init__( | ||
self, | ||
prefix: str, | ||
name: str = "", | ||
): | ||
with self.add_children_as_readables(): | ||
self.x = Motor(prefix + "X") | ||
self.y = Motor(prefix + "Y") | ||
super().__init__(name=name) | ||
|
||
|
||
class Diffractometer(StandardReadable): | ||
def __init__( | ||
self, | ||
prefix: str, | ||
name: str = "", | ||
): | ||
with self.add_children_as_readables(): | ||
self.tth = Motor(prefix + "TWOTHETA") | ||
self.th = Motor(prefix + "THETA") | ||
self.chi = Motor(prefix + "CHI") | ||
self.chamber_x = Motor(prefix + "X") | ||
self.alpha = Motor(prefix + "ALPHA") | ||
super().__init__(name=name) | ||
|
||
|
||
class DetSlits(StandardReadable): | ||
"Detector slits" | ||
|
||
def __init__( | ||
self, | ||
prefix: str, | ||
name: str = "", | ||
): | ||
with self.add_children_as_readables(): | ||
self.upstream = Motor(prefix + "1:TRANS") | ||
self.downstream = Motor(prefix + "2:TRANS") | ||
super().__init__(name=name) | ||
|
||
|
||
class PaStage(StandardReadable): | ||
"Rasor detector stage" | ||
|
||
def __init__( | ||
self, | ||
prefix: str, | ||
name: str = "", | ||
): | ||
with self.add_children_as_readables(): | ||
self.ttp = Motor(prefix + "TWOTHETA") | ||
self.thp = Motor(prefix + "THETA") | ||
self.y = Motor(prefix + "Y") | ||
self.z = Motor(prefix + "Z") | ||
self.eta = Motor(prefix + "ETA") | ||
super().__init__(name=name) |
File renamed without changes.