Skip to content

Commit

Permalink
Merge pull request #308 from tacaswell/mnt/simplify_RE_call
Browse files Browse the repository at this point in the history
MNT: pass callbacks directly to _RE.__call__
  • Loading branch information
dmgav authored Oct 19, 2024
2 parents af0b4e7 + 3432b0e commit b5fc78e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions bluesky_queueserver/manager/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ def _generate_new_plan(self, parameters):
plan_info = parameters

try:
from bluesky.preprocessors import subs_wrapper

with self._allowed_items_lock:
allowed_plans, allowed_devices = self._allowed_plans, self._allowed_devices

Expand Down Expand Up @@ -492,8 +490,7 @@ def _generate_new_plan(self, parameters):

def get_start_plan_func(plan_func, plan_args, plan_kwargs, plan_meta):
def start_plan_func():
g = subs_wrapper(plan_func(*plan_args, **plan_kwargs), {"all": [self._run_reg_cb]})
return self._RE(g, **plan_meta)
return self._RE(plan_func(*plan_args, **plan_kwargs), {"all": [self._run_reg_cb]}, **plan_meta)

return start_plan_func

Expand Down
3 changes: 0 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
import sphinx_rtd_theme

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

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

0 comments on commit b5fc78e

Please sign in to comment.