Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xspress3 support with the community IOC #46

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
12 changes: 3 additions & 9 deletions .ci/bl-specific.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/bin/bash

# The beamline-specific metapackages are not used since 2020-2.0 deployment.
# conda install -y -c ${CONDA_CHANNEL_NAME} <package>
sudo mkdir -v -p /nsls2/data/srx/legacy/ \
/nsls2/data/srx/assets/

sudo mkdir -v -p /nsls2/xf05id1/shared/config/ \
/nsls2/xf05id1/experiments/ \
/nsls2/xf05id1/shared/src/bluesky_scripts/
sudo chmod -Rv go+rw /nsls2/data/srx/

sudo chmod -Rv go+rw /nsls2/xf05id1/

touch /nsls2/xf05id1/shared/src/bluesky_scripts/simple_batch.py
touch /nsls2/xf05id1/shared/src/bluesky_scripts/fly_batch.py
16 changes: 8 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ resources:
endpoint: github

jobs:
- template: 2022-2.3-py39-tiled.yml@templates
- template: 2023-3.3-py310-tiled.yml@templates
parameters:
beamline_acronym: HXN
- template: 2022-2.3-py39.yml@templates
beamline_acronym: SRX
- template: 2023-3.3-py310.yml@templates
parameters:
beamline_acronym: HXN
- template: 2022-2.4-py39-tiled.yml@templates
beamline_acronym: SRX
- template: 2023-3.3-py311-tiled.yml@templates
parameters:
beamline_acronym: HXN
- template: 2022-2.4-py39.yml@templates
beamline_acronym: SRX
- template: 2023-3.3-py311.yml@templates
parameters:
beamline_acronym: HXN
beamline_acronym: SRX
4 changes: 2 additions & 2 deletions startup/00-base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def wait_for_connection(self, timeout=DEFAULT_CONNECTION_TIMEOUT):
going = "Going"
else:
# Case of CI:
timeout = 10 # seconds
timeout = 30 # seconds
going = "NOT going"

print(f'\nEpicsSignalBase timeout is {timeout} [seconds]. {going} to touch beamline hardware.\n')
Expand Down Expand Up @@ -195,7 +195,7 @@ def reload(self):

# Optional: set any metadata that rarely changes.
RE.md["beamline_id"] = "SRX"
RE.md["md_version"] = "1.0"
RE.md["md_version"] = "1.1"

# from bluesky.utils import ts_msg_hook
# RE.msg_hook = ts_msg_hook
Expand Down
2 changes: 1 addition & 1 deletion startup/30-scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def export_sis_data(ion, filepath, zebra):
# new = old - (zero_val * (new_t / 50_000_000))
# might be good to throw a np.amax(new, 0) in there to prevent negative values
# it would be good to save the "zero" value in the scan metadata as well
dset0 = f.create_dataset("time", (correct_length,), dtype="f")
dset0 = f.create_dataset("sis_time", (correct_length,), dtype="f")
dset0[...] = np.array(new_t)
dset1 = f.create_dataset("i0", (correct_length,), dtype="f")
dset1[...] = np.array(new_i)
Expand Down
328 changes: 0 additions & 328 deletions startup/31-community-ioc-base-xspress3.py

This file was deleted.

Loading
Loading