This is the client side application which can connect to
hard-link
to get live-data from the
microscope.
- You could optionally use a virtual environment.
$ python -m pip install virtualenv
$ python -m virtualenv deepthought
$ source deepthought/bin/activate
$ python -m pip install -U pip
- Install with:
$ python -m pip install -e .
$ python run.py
- If you have
llvm11
, you might get an error while installingllvmlite
, which is required bynumba
. Go back tollvm10
.
databroker manages access to data for us. To get started with the experimental data stored in deepthought/db_data/*.msgpack,
set-up a yml configuration file for a catalog, where databroker looks for it.
- Find out where databroker looks for it with
python3 -c "import databroker; print(databroker.catalog_search_path())"
- make a copy of
./catalog.yml
and edit it to point todb_data/*.msgpack
correctly, and move the file to one of the catalog search paths.
to test if you have been succesfull,
- open terminal from the context of
deepthought/deepthought
, - if this runs without error, you're good to go.
python3 -c "from data import db"
accessing data programmatically
from data import db
# returns the databroker.Header object which can give you the data in many forms
header = db[-1]
# access data as pandas.DataFrame
df = header.table()