Skip to content

Commit

Permalink
STY #255 per 'ruff'
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Feb 26, 2024
1 parent 63ad1c1 commit c9e6b9b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bluesky/instrument/framework/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import bluesky.preprocessors as bpp # noqa
import numpy as np # noqa


# Post a warning if at APS but not on controls subnet.
warn_if_not_aps_controls_subnet()

Expand All @@ -57,12 +56,10 @@ def get_md_path():
logger.info("RunEngine metadata saved in directory: %s", str(path))
return str(path)


# Set up a RunEngine and use metadata backed PersistentDict
RE = RunEngine({})
RE.md = PersistentDict(get_md_path())


# Connect with our mongodb database
catalog_name = iconfig.get("DATABROKER_CATALOG", "training")
# databroker v2 api
Expand All @@ -73,7 +70,6 @@ def get_md_path():
cat = databroker.temp().v2
logger.info("using TEMPORARY databroker catalog '%s'", cat.name)


# Subscribe metadatastore to documents.
# If this is removed, data is not saved to metadatastore.
RE.subscribe(cat.v1.insert)
Expand Down

0 comments on commit c9e6b9b

Please sign in to comment.