Skip to content

Commit

Permalink
Revert "Change ophyd script to better handle macro usage, previous li…
Browse files Browse the repository at this point in the history
…mited to 2"

This reverts commit 67d226e.
  • Loading branch information
kgofron committed Sep 7, 2022
1 parent 56fa1b3 commit 3b9bacf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/collect_ad_boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def parse_pv_structure(driver_dir):
# Ex:
# record(stringin, "$(P)$(R)Description_RBV") Splits into
# ['record(stringin, "$(P', '$(R', 'Description_RBV"', '']
# The PV name is the 2nd to last element element, so array index -2, and we remove the last character, '"'
pv_name = line.split(")")[-2][:-1]
# The PV name is the 3rd element, so array index 2, and we remove the last character, '"'
pv_name = line.split(")")[2][:-1]

# Check if it is a readback PV
if pv_name.endswith("_RBV"):
Expand Down

0 comments on commit 3b9bacf

Please sign in to comment.