UnboundLocalError: local variable 'dotAB' referenced before assignment in dot23()
Closed this issue · 2 comments
joshuakraemer commented
Calling luxpy.color.cam.zcam(numpy.array([10, 20, 30]))
results in the error UnboundLocalError: local variable 'dotAB' referenced before assignment
. The traceback points to function "dot23()". The reason for this error seems to be that all assignments of the returned variable "dotAB" are behind if conditions.
ksmet1977 commented
your input is a vector, but all colorimetric data in luxpy is always either 2D or 3D arrays with the actual colorimetric values on the last axis.
Calling luxpy.color.cam.zcam(numpy.array([[10, 20, 30]]))
works without a problem.
joshuakraemer commented
Thanks and sorry for the mistake!