-
Hi, I have a question regarding the navigation shape convention when moving between kikuchipy and orix. It seems like they use two different conventions for x and y. Kikuchipy follows the convention (x, y) = (rows, columns) whereas Orix uses (x, y) = (columns, rows). Is there a reason for this difference?
which gives the results
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It's the other way round, orix uses (n rows, n columns), which is in line with how NumPy represents a 2D array, while kikuchipy's signals extend HyperSpy's Signal2D class, which in all its representations use (n columns, n rows). This distinction is very important to be aware of! HyperSpy's rationale for this choice is explained in their documentation. You can see the difference when comparing |
Beta Was this translation helpful? Give feedback.
It's the other way round, orix uses (n rows, n columns), which is in line with how NumPy represents a 2D array, while kikuchipy's signals extend HyperSpy's Signal2D class, which in all its representations use (n columns, n rows). This distinction is very important to be aware of! HyperSpy's rationale for this choice is explained in their documentation.
You can see the difference when comparing
s_2.axes_manager.navigation_shape
ands_2.data.shape
.