Open kylinzzx opened 3 years ago
One way to solve this problem might be implementing __hash__
method in the WithDimensionlessUnit
class (https://github.com/labrad/pylabrad/blob/3f4d4849ca101de1edfeb6959ee8ceccb821251d/labrad/units.py#L979). Currently the method is only implemented in the WithUnit
class.
DimensionlessFloat
can not be called byhash(obj)
I am not sure this is a designed behavior.