Skip to content

Commit

Permalink
Add missing skimage dependency to pull the dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Feb 15, 2024
1 parent fbf17aa commit 384c001
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
9 changes: 9 additions & 0 deletions scripts/run-caproto-ioc.sh
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions scripts/test-file-saving.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 384c001

Please sign in to comment.