Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
129 edge detection #143
129 edge detection #143
Changes from 21 commits
c66ac65
79c5803
0fe133c
d354195
096e428
df955ca
0f47def
9b5fed2
3d04cde
8fd023c
58493d6
9cb32c2
aa39ed6
3c26bd4
498ce53
e974644
d752192
08ac04b
e782d4d
cd88112
732a194
10f1fb2
ee7c732
2d8f2de
67a119e
72a6b62
11475dc
d400d81
be93998
927f3de
bfeac35
6552557
be318f9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ophyd v2 devices have moved away from prefixes, and now just have names by default; something you've spotted as the call to
super()
below uses just a name.You're free to leave the prefix as is, this is just a comment on asking if you've thought about this: Would it be worth changing this
__init__
to only take a name, and just passing the prefix in that name? e.g. name=f'{MY_BL_PREFIX}:some-pv'
instead ofprefix=f'{MY_BL_PREFIX}', name="some-pv"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably more complicated than it first seems, as we create any arbitrary ophyd device by running:
i.e. wanting a prefix argument.
I'm inclined to spin this out into a separate issue to properly consider what we want long term. Is this kind of "unified" interface actually correct/desirable or should we really just have
device_instantiation_v1
anddevice_instantiation_v2
separately for example...#149