Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[flake8] | |
max-line-length = 115 |
In this example, we connect to a public HTTP server and download raw tomography images.
It is not necessary to use Python to do this---curl
would work fine---but
the Tiled Python client is currently the most convenient way to do navigate the data.
pip install tiled[client]
Terminal 1:
bluesky-0MQ-proxy 5567 5568
Terminal 2:
python publisher.py
We will use caproto-shark to analyze CA network traffic. Note that the actual servers and clients involve may or may not be using caproto themselves; it does not matter.
-
Install caproto and pandas if they are not already installed.
pip install caproto[standard] pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bluesky_widgets.models.auto_plot_builders import AutoPlotter | |
from bluesky_widgets.models.plot_builders import Lines | |
from bluesky_widgets.models.plot_specs import AxesSpec, FigureSpec | |
from bluesky_widgets.qt.figures import QtFigures | |
import databroker | |
import numpy as np | |
def xanes(monitor, detector): | |
absorption = np.log(np.array(monitor) / np.array(detector)).reshape(-1, 4) |