From c9e6b9bc84d5449222100a20fbb644e343fccaa2 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Mon, 26 Feb 2024 13:32:56 -0600 Subject: [PATCH] STY #255 per 'ruff' --- bluesky/instrument/framework/initialize.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bluesky/instrument/framework/initialize.py b/bluesky/instrument/framework/initialize.py index ee8af988..34c3a8f3 100644 --- a/bluesky/instrument/framework/initialize.py +++ b/bluesky/instrument/framework/initialize.py @@ -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() @@ -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 @@ -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)