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
76220f0c
Commit
76220f0c
authored
1 year ago
by
(INACTIVE) Marcel Bajdel (new marcel.bajdel)
Browse files
Options
Downloads
Patches
Plain Diff
use tiled instead of temporary
parent
7a4038d2
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/base.py
+10
-10
10 additions, 10 deletions
beamlinetools/BEAMLINE_CONFIG/base.py
with
10 additions
and
10 deletions
beamlinetools/BEAMLINE_CONFIG/base.py
+
10
−
10
View file @
76220f0c
...
...
@@ -16,22 +16,22 @@ RE.subscribe(bec)
# db = databroker.catalog["myspot2"]
# RE.subscribe(db.v1.insert)
#
from os import environ
#
if environ.get('TILED_URL') is not None and environ.get('TILED_API_KEY') is not None:
#
if "http" in environ.get('TILED_URL'):
#
db = from_uri(environ.get('TILED_URL'), api_key=environ.get('TILED_API_KEY'))
from
os
import
environ
if
environ
.
get
(
'
TILED_URL
'
)
is
not
None
and
environ
.
get
(
'
TILED_API_KEY
'
)
is
not
None
:
if
"
http
"
in
environ
.
get
(
'
TILED_URL
'
):
db
=
from_uri
(
environ
.
get
(
'
TILED_URL
'
),
api_key
=
environ
.
get
(
'
TILED_API_KEY
'
))
#
def post_document(name,doc):
#
db.post_document(name,doc)
def
post_document
(
name
,
doc
):
db
.
post_document
(
name
,
doc
)
#
RE.subscribe(post_document)
RE
.
subscribe
(
post_document
)
# Temporary database, once mongo is installed and a database created use
# comment the following lines
from
databroker
import
Broker
db
=
Broker
.
named
(
'
temp
'
)
RE
.
subscribe
(
db
.
insert
)
#
from databroker import Broker
#
db = Broker.named('temp')
#
RE.subscribe(db.insert)
# If you need debug messages from the RE then uncomment this
...
...
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