msujas / maskGenerator_CdTe

a cosmic radiation mask generator for a Pilatus CdTe detector
0 stars 0 forks source link

direc.replace somewhere #1

Closed MarcoVando closed 1 month ago

MarcoVando commented 2 months ago

Hi kenneth I was running the code and I got this error. I installed the package as u mentioned with pip install -e . I then run imagin from the same folder

(I replaced the actual path with "..." in the lines below) FileNotFoundError: [Errno 2] No such file or directory: '/Users/marco/.../pdf/303K_vac_activated/xrd/Z:/visitor/ch6985/bm31/20240610/pylatus/pilatusPixelCorrections.h5' Unable to configure detector NexusDetector with config: {}

[Errno 2] No such file or directory: '/Users/marco/.../pdf/303K_vac_activated/xrd/Z:/visitor/ch6985/bm31/20240610/pylatus/pilatusPixelCorrections.h5

I think there's a direc.replace somewhere in ur files.

msujas commented 2 months ago

It's probably your MD.poni file. You need to change the path to the module distortion file in there (pilatusPixelCorrections.h5). Otherwise I'll have a look tomorrow.