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
7a4038d2
Commit
7a4038d2
authored
1 year ago
by
(INACTIVE) Marcel Bajdel (new marcel.bajdel)
Browse files
Options
Downloads
Patches
Plain Diff
add secop devices to the beamline tools
parent
91cb75d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beamlinetools/BEAMLINE_CONFIG/beamline.py
+22
-1
22 additions, 1 deletion
beamlinetools/BEAMLINE_CONFIG/beamline.py
with
22 additions
and
1 deletion
beamlinetools/BEAMLINE_CONFIG/beamline.py
+
22
−
1
View file @
7a4038d2
...
...
@@ -88,4 +88,25 @@ from beamlinetools.devices.mca_old import xMap
# from beamlinetools.devices.eiger import MyDetector
# prefix = 'EIG:'
# eiger = MyDetector(prefix, name="eiger")
\ No newline at end of file
# eiger = MyDetector(prefix, name="eiger")
### SECoP-Ophyd Device ###
from
.base
import
RE
from
ophyd_async.core
import
DeviceCollector
from
secop_ophyd.SECoPDevices
import
SECoP_Node_Device
import
asyncio
from
beamlinetools.devices.genNodeClass
import
Reactor_cell
,
Gas_dosing
from
pprint
import
pprint
# # Connect to Gas Dosing SEC Node and generate ophyd device trees
gas_d
=
SECoP_Node_Device
.
create
(
'
localhost
'
,
'
10800
'
,
RE
.
loop
)
# # Connect to Reactor Cell SEC Node and generate ophyd device tree
reactor_c
=
SECoP_Node_Device
.
create
(
'
localhost
'
,
'
10801
'
,
RE
.
loop
)
gas_d
.
class_from_instance
()
reactor_c
.
class_from_instance
()
reactor_c
:
Reactor_cell
=
reactor_c
gas_d
:
Gas_dosing
=
gas_d
\ No newline at end of file
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