Comments (1)
Could you check what version of zhinst-qcodes and zhinst-toolkit you have installed in your environment? if it's 0.3.*, then it's likely that you're facing the consequences of this refactor https://docs.zhinst.com/zhinst-qcodes/en/latest/refactoring/index.html .
The solution for this HF2LI driver in qcodes_ms_drivers could be the following:
- implement a version check upon import of zhinst-qcodes (the 0.3 reports
__version__
correctly, while the 0.2.* versions did not even have it), and throw an error or warning to the user suggesting to downgrade to zhinst-qcodes 0.2.* to keep this driver working - [my recommendation] update the driver to work with 0.3, and still implement the version check that asks the user to update to the 0.3 version of zhinst-qcodes.
the version check could be smth like:
from packaging import version
def is_zi_version_0_3_or_higher() -> bool:
try:
zhinst_qcodes_version = zhinst.qcodes.__version__
except (ImportError, ModuleNotFoundError):
zhinst_qcodes_version = "0.0"
return version.parse(zhinst_qcodes_version) >= version.parse("0.3")
from qcodes_contrib_drivers.
Related Issues (12)
- AFG3000 validators HOT 5
- CopperMountain M5180 -- typo in __init__ docstring? HOT 6
- SignalCore driver should be renamed to device name
- Latest versions of packaging break QDAC2 driver HOT 4
- Location of QDevil QDAC 1 driver HOT 1
- NationalInstruments drivers missing when installing using pip HOT 2
- AimTTi and Vaunix are missing __init__.py HOT 1
- Azure pipeline fails on IPInstrument HOT 1
- S5048 Network Analyzer driver: HOT 3
- Invalid zero based channel index in KeySight M3201A driver. HOT 3
- Licensing mismatch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qcodes_contrib_drivers.