Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replay() fails when not list #216

Closed
prjemian opened this issue Jul 31, 2019 · 1 comment · Fixed by #217
Closed

replay() fails when not list #216

prjemian opened this issue Jul 31, 2019 · 1 comment · Fixed by #217
Assignees
Labels
Milestone

Comments

@prjemian
Copy link
Contributor

In [4]: APS_utils.replay(db[-1], handler)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-731a69b7fda4> in <module>
----> 1 APS_utils.replay(db[-1], handler)

/share1/bluesky/conda_envs/bluesky/lib/python3.7/site-packages/apstools/utils.py in replay(headers, callback)
    362         if not isinstance(h, databroker.Header):
    363             emsg = f"Must be a databroker Header: received: {type(h)}: |{h}|"
--> 364             raise TypeError(emsg)
    365         cmd = _rebuild_scan_command(h.start)
    366         logger.debug(f"{cmd}")

TypeError: Must be a databroker Header: received: <class 'str'>: |start|

@prjemian prjemian added the bug label Jul 31, 2019
@prjemian prjemian added this to the future-milestone milestone Jul 31, 2019
@prjemian prjemian self-assigned this Jul 31, 2019
@prjemian
Copy link
Contributor Author

But this works: APS_utils.replay([db[-1]], handler)

prjemian added a commit that referenced this issue Jul 31, 2019
@prjemian prjemian modified the milestones: future-milestone, 1.1.12 Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant