Example of how to extend Tiled with a custom route
-
Clone this gist and enter the directory.
-
Install Tiled and and, optionally, a HTTP client to test with.
pip install tiled[all] httpie
from ophyd.sim import Signal | |
from ophyd import Component, Device | |
class Filters(Device): | |
a = Component(Signal, value=0) | |
b = Component(Signal, value=1) | |
def set(self, a, b): | |
return ( |
Clone this gist and enter the directory.
Install Tiled and and, optionally, a HTTP client to test with.
pip install tiled[all] httpie
python middlware.py
.http :8000/data
. This should return the list of numbers from the server.print
to print a message in the server logs before and after a request is seen.Question: Do the middlewares get run in the order that they are added in middlware.py
or in the reverse order?
Install podman. https://podman.io/getting-started/installation
Install podman-compose:
pip install podman-compose
Clone or copy docker-compose.yml
and config.yml
from this gist into a directory.
conda activate sandbox
pip install --pre tiled[all] databroker[all] ipython
Note for Mac: Mac uses zsh
by default and it requires single quotes like 'databroker[all]'
. On the other hand, Windows requires that you not have quotes.
mkdir sandbox
cd sandbox/
This is a draft of a guide for migrating from Databroker v1.x to Databroker v2.x (currently in prerelease). The data storage does not change; only the way it is accessed changes. It is possible to run Databroker v1.x and 2.x against the same MongoDB concurrently. Databroker 1.x was effectively a plugin to Intake. Databroker 2.x refactors Databroker as a plugin to Tiled, and drops any depenedency on Intake.