The error arises from [here](https://github.com/OE-FET/keithley2600/blob/d03691c4c193cec3d10d1cf865ebdd5cb92dcd9d/keithley2600/keithley_driver.py#L164) after upgrading NumPy. The problem is in `_convert_input` function: https://github.com/OE-FET/keithley2600/blob/d03691c4c193cec3d10d1cf865ebdd5cb92dcd9d/keithley2600/keithley_driver.py#L766 Since NumPy>1.20.0, the use of `numpy.complex` is deprecated ([ref](https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations)). Instead, `complex` must be used.