Closed danielballan closed 2 months ago
This worked for me on a Debian laptop, with the caveat that I have to specify --handler 'NPY_SEQ = ophyd.sim:NumpySeqHandler'
If ophyd.sim
is installed in the environment where databroker admin shape-fixer ...
is run, the NPY_SEQ
handler will be discovered via entrypoints.
Databroker 1.x does not validate that the
shape
metadata in the descriptor is correct. Databroker 2.x (i.e. Tiled-backed Databroker) requires it to be correct.Databroker provides a "shape fixer" CLI for retroactively fixing shape metadata. In
main
, this utility operates by directly updating the documents in MongoDB. In this PR, it is modified to operate by making aPATCH
request through tiled. This has several advantages:This PR also adds a demo script and updates the
docker-compose.yml
to support a test. Quoting the docstring: