Open mnmelo opened 8 years ago
Were the original transformations.py and transformations.c files updated – the latest files have a (c) 2015? See http://www.lfd.uci.edu/~gohlke/
There are also some packages that package these files but not necessarily more uptodate than upstream:
After #959 I played around with
lib/transformations
trying to find ways to improve coverage, when I spotted the following inconsistency between the cython and python versions ofscale_matrix
if a non-defaultdirection
is used:Things get worse when going for negative
factor
values:Not only are the cython and python results incompatible with one another, they are also incompatible with their negative-factor counterparts. In addition, these are scaling, not shearing operations. Why are we getting off-diagonal elements?
I think part of the problem lies on using both
factor
anddirection
, when a 3-tuple of factors would suffice for directional scaling (and it'd also make it easier to visualize the meaning of the scaling).Finally, there is no usage of the scaling functions in our internal code, which is good, but I guess this must be dealt with or it'll bite us at some point in the future.