8000 248 wire scan by kabanaty · Pull Request #11 · kabanaty/lcls-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

248 wire scan #11

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

Merged
merged 2 commits into from
May 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 4 additions & 21 deletions lcls_tools/common/measurements/wire_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from lcls_tools.common.measurements.tmit_loss import TMITLoss
import numpy as np
import pandas as pd
import epics


class WireBeamProfileMeasurementResult(BaseModel):
Expand Down Expand Up @@ -134,28 +133,12 @@ def reserve_buffer(self):
my_buffer.destination_mode = 2

# Clear all previous destinations
dst_pv_prefix = "BSA:SYS0:1:" + str(my_buffer.number) + ":DST"
for d in range(1, 6):
clear_dst_pv = dst_pv_prefix + str(d)
epics.caput(clear_dst_pv, 0)

# Get DST index
if self.beampath == "SC_DIAG0":
dst_num = "1"
elif self.beampath == "SC_BSYD":
dst_num = "2"
elif self.beampath == "SC_HXR":
dst_num = "3"
elif self.beampath == "SC_SXR":
dst_num = "4"
elif self.beampath == "SC_DASEL":
dst_num = "5"

# Set appropriate DST for chosen beampath
set_dst_pv = dst_pv_prefix + dst_num
epics.caput(set_dst_pv, 1)
my_buffer.clear_masks()

# Set appropriate destination mask for chosen beampath
my_buffer.destination_masks = [self.beampath]
return my_buffer

elif self.beampath.startsWith("CU"):
# Reserve eDef buffer for CU destinations
my_buffer = edef.EventDefinition("LCLS Tools Wire Scan", user=user)
Expand Down
Loading
0