-
Notifications
You must be signed in to change notification settings - Fork 12
Rename scanspec file #1640
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
base: main
Are you sure you want to change the base?
Rename scanspec file #1640
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1640 +/- ##
=======================================
Coverage 98.90% 98.90%
=======================================
Files 270 270
Lines 9888 9888
=======================================
Hits 9780 9780
Misses 108 108 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
DominicOram
left a comment
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.
Thanks. Can we have a test that would have caught this? I'm not sure off the top of my head how to reproduce it in a test but we should have a go
I was thinking possibly a linting rule, but can't find it in the official ruff rules- it's been implemented in this third party additional ruleset: https://github.com/gforcada/flake8-builtins as A005, may give more to search on |
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.
I'd like to find a better name for this file, it's not really reading a scanspec, the scanspec defines the trajectory of the motors.
Sorry, this one slipped my mind. I think I agree it should me more a linting rule than a test... Considering the problem came from the file being called the same as a package we're importing I'm not really sure we could come up with a test that checks this |
DominicOram
left a comment
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.
Sorry, this one slipped my mind. I think I agree it should me more a linting rule than a test...
I don't think it's a linting rule if you found a situation that raised an Exception in prod. We should be able to reproduce the error in a test. How do I reproduce getting the error described in this PR?
Renames
src/dodal/plans/scanspec.pyto avoid issues from the filename clashing with the package.eg.
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}