Skip to content

Commit

Permalink
Merge pull request #119 from ZLLentz/hinted-macro
Browse files Browse the repository at this point in the history
BUG: fix issue where macro motor readback was not hinted
  • Loading branch information
ZLLentz authored May 23, 2022
2 parents 0ac5d45 + 86be016 commit 3d13f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ build:

requirements:
build:
- python >=3.6
- python >=3.6,<3.10
- setuptools
run:
- python >=3.6
- python >=3.6,<3.10
- ipython
- numpy
- pandas
Expand All @@ -29,6 +29,8 @@ requirements:
- pswalker >=1.0.5
- pcdsdevices >=4.0.0
- pyepics
run_constrained:
- pyqt <5.15

test:
imports:
Expand Down
2 changes: 1 addition & 1 deletion hxrsnd/macromotor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MacroBase(SndMotor):
'status', 'wait', 'c', 'gap']

# Set add_prefix to be blank so cmp doesnt append the parent prefix
readback = Cmp(AttributeSignal, "position", add_prefix='')
readback = Cmp(AttributeSignal, "position", add_prefix='', kind='hinted')

def __init__(self, prefix, name=None, read_attrs=None, *args, **kwargs):
read_attrs = read_attrs or ["readback"]
Expand Down

0 comments on commit 3d13f16

Please sign in to comment.