-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add a bunch of new drivers #261
Conversation
Possible extensions: - parse LabSpec6 config file to determine which motor sits at which address on the board to avoid having to manually set the IDs etc. at runtime. - otherwise, use a simple Python data structure to do the same.
In case someone wants to implement a newer version of the dll in the future.
# Conflicts: # qcodes_contrib_drivers/drivers/msquared/__init__.py # qcodes_contrib_drivers/drivers/msquared/solstis_3.py
include verbose parameters if one wants to display the JSON strings
functions to get/set lock create parameters wavelength_t/wavelength_m and lock
also a few typing errors to fix, see here https://github.com/QCoDeS/Qcodes_contrib_drivers/actions/runs/6561129954/job/17820255378?pr=261 |
thanks for the contribution! |
I'd appreciate if you could help me out with some of those since I don't have a lot of experience with mypy.
|
|
Stacking classmethod and property is deprecated in CPython.
Otherwise the Horiba FHR driver cannot be imported and building fails.
to sovle this you could add
to solve this, i don't remember, but perhaps the minimum version of typing_extensions needs to be bumped or so. |
@thangleiter instead of 83b844b you could add this module to autodoc mock imports like here https://github.com/QCoDeS/Qcodes/blob/main/docs/conf.py#L439 |
Mypy finally runs without errors locally on 3.9. |
_CData cannot be imported
For reasons unclear to me, validation is performed before set_parsing, making the latter obsolete if validation for the set_parser type
Codecov Report
@@ Coverage Diff @@
## main #261 +/- ##
==========================================
- Coverage 20.17% 19.64% -0.54%
==========================================
Files 146 153 +7
Lines 18260 18756 +496
==========================================
Hits 3684 3684
- Misses 14576 15072 +496
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Need to specify root package of the dependency: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_mock_imports
... Docs should also be fixed now! |
I am finally tackling our driver backlog. Some of these are likely to be of limited broad appeal, so let me know if adding them is out of scope for the main repo.
If desired I can split up the PR into one for each new driver.