Closed hakonanes closed 5 years ago
@dnjohnstone (pretending he was JMorzy) refactored apply_affine_transform
which has caused this break. I think he was doing it for speed (can you confirm Duncan?), and forgot this particular edge case.
Will fix either fix the notebook or file a bug at pyxem once I've spoken to him.
I did refactor apply_affine_transformation so that the affine transformation was defined as a skimage transform outside of the map function, which did increase the speed quite substantially. To be honest I didn't realise we were ever allowing a Signal2D of transformation matrices to be passed to this function and I'm pretty sure the docstring never said that. It that's behaviour we want I think we should keep the existing functionality somehow for the speed benefits and also test for D being passed both as a numpy array and a Signal2D.
This should now be fixed in 0.8.1
Encountered a small bug in the strain mapping notebook: