Skip to content

Commit b5fc78e

Browse files
authored
Merge pull request #308 from tacaswell/mnt/simplify_RE_call
MNT: pass callbacks directly to _RE.__call__
2 parents af0b4e7 + 3432b0e commit b5fc78e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

bluesky_queueserver/manager/worker.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,6 @@ def _generate_new_plan(self, parameters):
463463
plan_info = parameters
464464

465465
try:
466-
from bluesky.preprocessors import subs_wrapper
467-
468466
with self._allowed_items_lock:
469467
allowed_plans, allowed_devices = self._allowed_plans, self._allowed_devices
470468

@@ -492,8 +490,7 @@ def _generate_new_plan(self, parameters):
492490

493491
def get_start_plan_func(plan_func, plan_args, plan_kwargs, plan_meta):
494492
def start_plan_func():
495-
g = subs_wrapper(plan_func(*plan_args, **plan_kwargs), {"all": [self._run_reg_cb]})
496-
return self._RE(g, **plan_meta)
493+
return self._RE(plan_func(*plan_args, **plan_kwargs), {"all": [self._run_reg_cb]}, **plan_meta)
497494

498495
return start_plan_func
499496

docs/source/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@
106106
# a list of builtin themes.
107107
#
108108
html_theme = 'sphinx_rtd_theme'
109-
import sphinx_rtd_theme
110-
111-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
112109

113110
# Theme options are theme-specific and customize the look and feel of a theme
114111
# further. For a list of options available for each theme, see the

0 commit comments

Comments
 (0)