-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scantool class and CI #2
Conversation
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.
Codewise LGTM, though I haven't used the scantool, so I trust it does what it should.
Maybe I'd turn the attributes into properties, since you nicely documented what they are already, that'd make it easier to look them up from an interractive python session.
src/extra/components/scantool.py
Outdated
from ..data import SourceData | ||
|
||
class Scantool: | ||
"""Interface for the XFEL scantool (Karabacon). |
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.
"""Interface for the XFEL scantool (Karabacon). | |
"""Interface for the EuXFEL scantool (Karabacon). |
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.
Changed to European XFEL
in ba0e737.
Thanks for the review 🙏 Possibly dumb question, but how would them being properties make them easier to look up interactively? |
turn the comments in docstring? |
Ahhh right so you could call |
LGTM from my (scantool) side. |
Replaced attributes with properties in 7b93b0b (and fixed the tests). |
Rebased, and added CI in 747eaa1. |
5b3116b
to
460d717
Compare
Rebased onto |
Because I want to use str.removeprefix().
This adds a component class for the scantool.
CC @IvarsKarpics