Start the container interactively.
sudo podman run -it --rm --name=area-detector -e AD_PREFIX=13SIM1: -p 5064:5064 -v /tmp:/tmp prjemian/synapps-6.1-ad-3.7:latest
In the container's shell:
iocSimDetector/simDetector.sh start
To attach to the epics >
shell and see log messages:
screen -r
Use Ctrl+A Ctrl+D to escape back to the container's shell.
Use ifconfig
and find the broadcast address on the the podman network. SetEPICS_CA_ADDR_LIST
to that address.
Run
EPICS_CA_ADDR_LIST=... ipython -i interactive_test.py
to exercise the area detector and the bluesky stack. The script may take some time (~10 seconds) to run, and once it completes it should place you in an interactive session where you can run, for eexample,
In [1]: catalog[-1].primary.read()['det_image'].load()
Out[1]:
<xarray.DataArray 'det_image' (time: 1, dim_0: 100, dim_1: 1024, dim_2: 1024)>
array([[[[ 1, 2, 3, ..., 254, 255, 0],
[ 2, 3, 4, ..., 255, 0, 1],
[ 3, 4, 5, ..., 0, 1, 2],
...,
[254, 255, 0, ..., 251, 252, 253],
[255, 0, 1, ..., 252, 253, 254],
[ 0, 1, 2, ..., 253, 254, 255]],
<snipped>
to get an image array.