Open mikaelhaji opened 2 days ago
Hey @mikaelhaji thanks for reporting this. Since you have PML auto the size of the output is the next power of 2 i.e. (64 x 64 x 64). We will work to automatically remove the PML in a future release as we discussed on Tuesday. For now you should be able to reshape the output yourself manually. Hope this helps.
Makes sense! Appreciate the prompt reply 🫡🫡
Describe the bug The p_max_all array produced during a k-Wave Python simulation cannot be reshaped into the expected grid dimensions (Nx, Ny, Nz). Specifically, the size of p_max_all significantly exceeds the expected total number of grid points, suggesting that it includes additional data beyond the computational grid.
To Reproduce Steps to reproduce the behavior:
Use the following minimal example code:
Expected behavior
To my understanding from the equivalent MATLAB version, the p_max_all array should have a size that matches the total grid points (Nx Ny Nz) and be reshaped without errors.
Instead,
ValueError: cannot reshape array of size 262144 into shape (20,20,20)
Screenshots Sim output:
Desktop (please complete the following information):