diff --git a/pyproject.toml b/pyproject.toml index bc7bf93..a7ee4d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ dependencies = [ "ophyd", "pyepics", # does not work with 'setuptools' version higher than v66.1.1 "scikit-image", + "pooch", # datasets for skimage ] [project.optional-dependencies] diff --git a/scripts/run-caproto-ioc.sh b/scripts/run-caproto-ioc.sh new file mode 100644 index 0000000..50549ca --- /dev/null +++ b/scripts/run-caproto-ioc.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# shellcheck source=/dev/null +. /etc/profile.d/epics.sh + +export EPICS_CAS_AUTO_BEACON_ADDR_LIST="no" +export EPICS_CAS_BEACON_ADDR_LIST="${EPICS_CA_ADDR_LIST}" + +python -m srx_caproto_iocs.base --prefix="BASE:{{Dev:Save1}}:" --list-pvs diff --git a/scripts/test-file-saving.sh b/scripts/test-file-saving.sh new file mode 100644 index 0000000..bc4e0ae --- /dev/null +++ b/scripts/test-file-saving.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# shellcheck source=/dev/null +. /etc/profile.d/epics.sh + +data_dir="/tmp/test/$(date +%Y/%m/%d)" + +if [ ! -d "${data_dir}" ]; then + mkdir -v -p "${data_dir}" +fi + +caput "BASE:{Dev:Save1}:write_dir" "${data_dir}" +caput "BASE:{Dev:Save1}:file_name" "saveme_{num:06d}_{uid}.h5" +caput "BASE:{Dev:Save1}:stage" 1 +for i in $(seq 50); do + echo "$i" + sleep 0.1 + caput "BASE:{Dev:Save1}:acquire" 1 +done + +caput "BASE:{Dev:Save1}:stage" 0