Would it be reasonable to introduce a grace mode when the hardware model is unknown, allowing the system to silently ignore settings that exceed outer limits?
|
try: |
|
self._model = PPS_MODELS[(self._vmax, self._imax)] |
|
except KeyError: |
|
self._serial.close() |
|
raise RuntimeError( |
|
"unknown Voltcraft PPS model with max V: {}, I: {}".format( |
|
self._vmax, self._imax |
|
) |
|
) |
Would it be reasonable to introduce a grace mode when the hardware model is unknown, allowing the system to silently ignore settings that exceed outer limits?
voltcraft/voltcraft/pps.py
Lines 91 to 99 in 1777dca