You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there might be a bug in one of the post processing functions: specifically, in the line
y, x, z = np.meshgrid(
np.arange( supC.shape[0] ),
np.arange( supC.shape[1] ),
np.arange( supC.shape[2] )
)
in the function centerObject in the PostProcessing.py module. Later lines were giving me a shape mismatch between x,y,z and supC; it looks like the default inputs for np.meshgrid ('xy' indexing) give a matrix with a shape whose first dimension corresponds to the second vector input and whose second dimension corresponds to the first vector input. So it seems like the line should be
y, x, z = np.meshgrid(
np.arange( supC.shape[1] ),
np.arange( supC.shape[0] ),
np.arange( supC.shape[2] )
)
or, alternatively, one could set indexing='ij' as a parameter in the meshgrid function.
(And the shape mismatch errors do go away after I make this change.)
The text was updated successfully, but these errors were encountered:
I think there might be a bug in one of the post processing functions: specifically, in the line
in the function centerObject in the PostProcessing.py module. Later lines were giving me a shape mismatch between
x
,y
,z
andsupC
; it looks like the default inputs for np.meshgrid ('xy' indexing) give a matrix with a shape whose first dimension corresponds to the second vector input and whose second dimension corresponds to the first vector input. So it seems like the line should beor, alternatively, one could set
indexing='ij'
as a parameter in the meshgrid function.(And the shape mismatch errors do go away after I make this change.)
The text was updated successfully, but these errors were encountered: