Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beamlinetools_1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
HZB
Bluesky
beamlines_endstations
MySpot
source
beamlinetools_1
Commits
7c44a986
Commit
7c44a986
authored
1 year ago
by
Simone Vadilonga
Browse files
Options
Downloads
Patches
Plain Diff
rename dcm classes
parent
33af0e23
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beamlinetools/BEAMLINE_CONFIG/beamline.py
+18
-12
18 additions, 12 deletions
beamlinetools/BEAMLINE_CONFIG/beamline.py
beamlinetools/devices/dcm_mySpot.py
+2
-2
2 additions, 2 deletions
beamlinetools/devices/dcm_mySpot.py
with
20 additions
and
14 deletions
beamlinetools/BEAMLINE_CONFIG/beamline.py
+
18
−
12
View file @
7c44a986
...
...
@@ -9,7 +9,7 @@ from beamlinetools.devices.ophydMFLibrary import keithley6485
from
beamlinetools.devices.au
import
AUmySpot
from
beamlinetools.devices.dcm_mySpot
import
DCMmySpot
,
DCMmySpotNew
from
beamlinetools.devices.dcm_mySpot
import
DCMmySpot
from
ophyd
import
EpicsMotor
...
...
@@ -26,7 +26,7 @@ get_ipython().register_magics(BlueskyMagics)
from
ophyd.sim
import
det1
,
det2
,
det3
,
det4
,
motor1
,
motor2
,
motor
,
noisy_det
# two simulated detectors
from
beamlinetools.devices.accelerator
import
DetailedAccelerator
,
TopUpMonitoring
from
beamlinetools.devices.mca
import
xMap
from
beamlinetools.devices.mca
_old
import
xMap
...
...
@@ -37,14 +37,13 @@ from beamlinetools.devices.mca import xMap
# accelerator.wait_for_connection()
# next_injection.wait_for_connection()
# Keithleys
print
(
'
Connecting to Amperometers
'
)
ks
=
'
K64851MF102L:
'
kth00
=
keithley6485
(
ks
+
'
12
'
,
name
=
'
myspot_keithley0
'
,
read_attrs
=
[
'
readback
'
],
labels
=
{
'
detectors
'
})
kth00
.
wait_for_connection
()
kth01
=
keithley6485
(
ks
+
'
14
'
,
name
=
'
myspot_keithley1
'
,
read_attrs
=
[
'
readback
'
],
labels
=
{
'
detectors
'
})
kth01
.
wait_for_connection
()
#
print('Connecting to Amperometers')
#
ks = 'K64851MF102L:'
#
kth00 = keithley6485(ks + '12', name='myspot_keithley0', read_attrs=['readback'], labels={'detectors'})
#
kth00.wait_for_connection()
#
kth01 = keithley6485(ks + '14', name='myspot_keithley1', read_attrs=['readback'], labels={'detectors'})
#
kth01.wait_for_connection()
# motors
# print('Connecting to motors')
...
...
@@ -67,9 +66,16 @@ dcm.p.set_mono_type()
# Mirrors
# Detectors
# Detectors
current
# mca = MCA('dxpXMAP:', name='mca')
print
(
'
Connecting to mca
'
)
mca
=
xMap
(
'
dxpXMAP:
'
,
name
=
'
mca
'
,
read_attrs
=
[
'
mca1.spectrum
'
,
'
mca2.spectrum
'
,
'
mca1.rois.roi0
'
])
mca
.
wait_for_connection
()
\ No newline at end of file
mca_old
=
xMap
(
'
dxpXMAP:
'
,
name
=
'
mca_old
'
,
read_attrs
=
[
'
mca1.spectrum
'
,
'
mca2.spectrum
'
,
'
mca1.rois.roi0
'
])
mca_old
.
wait_for_connection
()
from
beamlinetools.devices.mca
import
MyEpicsMCA
mca
=
MyEpicsMCA
(
'
dxpXMAP:
'
,
name
=
"
mca
"
)
from
beamlinetools.devices.mca
import
ExafsDet
ex_det
=
ExafsDet
(
mca
.
ch1
.
roi0
.
count
,
lt
=
mca
.
ch1
.
lifetime
,
name
=
"
ex_det
"
)
This diff is collapsed.
Click to expand it.
beamlinetools/devices/dcm_mySpot.py
+
2
−
2
View file @
7c44a986
...
...
@@ -38,7 +38,7 @@ mono_table = {'Si111':
'
cr2vetrCorr
'
:
0.0020
}
}
class
DCM
mySpotNew
(
PseudoPositioner
):
class
DCM
EnergyHeight
(
PseudoPositioner
):
'''
This class implements apertures with four blades (top, bottom, left, right)
and four pseudo motors (htop,hoffset,vgap,voffset)
'''
...
...
@@ -138,7 +138,7 @@ class DCMmySpot(Device):
cr2yaw
=
Cpt
(
EpicsMotor
,
'
l0202004
'
,
labels
=
{
"
dcm
"
})
monobr_encoder
=
Cpt
(
EpicsSignalRO
,
'
IK1380002
'
,
labels
=
{
"
dcm
"
})
p
=
Cpt
(
DCM
mySpotNew
,
""
,
labels
=
{
"
dcm
"
})
p
=
Cpt
(
DCM
EnergyHeight
,
""
,
labels
=
{
"
dcm
"
})
current_mono
=
"
Si111
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment