simpa icon indicating copy to clipboard operation
simpa copied to clipboard

Error in minimal_optical_simulation.py

Open hhapk opened this issue 2 years ago • 3 comments

Describe the bug Error is TypeError: _stack_dispatcher() got an unexpected keyword argument 'dtype' when runing minimal_optical_simulation.py. image.

Specify a priority (low, medium, high) medium

To Reproduce Steps to reproduce the behavior:

  1. Setup python '3.9', pytorch 1.12.1
  2. Setup virtual environment
  3. Install SIMPA 'v0.8.20'
  4. Run SIMPA script 'Run minimal_optical_simulation.py in Pycharm IDE'
  5. See error

Current Behavior minimal_optical_simulation.py break off

Expected behavior finish running minimal_optical_simulation.py

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [Ubuntu 18.04.5 LTS]
  • SIMPA version [0.8.20] and git commit hash if possible
  • IDE [Pycharm]

Additional context Add any other context about the problem here, e.g. possible solution(s).

hhapk avatar Sep 30 '23 07:09 hhapk

What numpy version do you have? The dtype argument was introduced in numpy version 1.24.0

kdreher avatar Sep 30 '23 12:09 kdreher

Thank you! The codes could run after installed the numpy==1.24.0. But I have encountered a new problem. Problem:No such file or directory: './workplace/data/MyVolumeName_471_output.mc2'. Is the mcx can't produce the 'MyVolumeName_471_output.mc2'? or 'MyVolumeName_471_output.mc2' was produced in other path, because i could not make files in the workspace in public servers image

hhapk avatar Sep 30 '23 14:09 hhapk

Thats because MCX recently made jnii the default file format. Theres already a pr to fix this, but it's not merged yet.

faberno avatar Oct 01 '23 12:10 faberno

This issue should be resolved by now

kdreher avatar Jun 17 '24 15:06 kdreher