Skip to content

Commit

Permalink
made changes to initalize to get rid of import
Browse files Browse the repository at this point in the history
  • Loading branch information
MDecarabas committed Jun 25, 2024
1 parent f5067b2 commit f1dcd31
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/aps_8id_bs_instrument/initialize_bs_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
from ophyd.signal import EpicsSignalBase
from ophydregistry import Registry

from . import iconfig
from .callbacks.spec_data_file_writer import specwriter
from .run_engine import run_engine
from .utils.ipy_helper import * # noqa
from .utils.metadata import MD_PATH
Expand Down Expand Up @@ -119,13 +117,7 @@ def epics_scan_id_source(_md):
scan_id_epics.wait_for_connection()
RE.md["scan_id"] = scan_id_epics.get()

if iconfig.get("WRITE_SPEC_DATA_FILES", False):
if specwriter is not None:
RE.subscribe(specwriter.receiver) # noqa
logger.info(f"writing to SPEC file: {specwriter.spec_filename}")
logger.info(" >>>> Using default SPEC file name <<<<")
logger.info(" file will be created when bluesky ends its next scan")
logger.info(" to change SPEC file, use command: newSpecFile('title')")


# this is where run engine gets created

Expand Down

0 comments on commit f1dcd31

Please sign in to comment.