Simind.get_psfmeta_from_header may not work?

Hello everyone

When I run the tutorial ,SIMIND-Tutorials/tutorial3 at master · lukepolson/SIMIND-Tutorials · GitHub

About PSF
psf_meta = simind.get_psfmeta_from_header(‘test_tot_w2.h00’)
psf_transform = SPECTPSFTransform(psf_meta)

If I don’t use it, I can get results, albeit of poor quality
However, if I use simind.get_psfmeta_from_header, I will get an incorrect result.
I’m curious why the tutorial gets the right result, collimator and other parameters related to PSF are parameters in the file


No PSF

With PSF

tutorial figure

How can I fix it?
And who can give me a copy of the correct .smc file and other codes

This problem has been bothering me for many days, if anyone can help me, I would appreciate it

Best wishes
Cheng

Dear @Chi, I got the right result. no problem with this tutorial

@Chi which version of SIMIND are you using? In SIMIND v8.0 they’ve changed it so that collimator dimensions are expressed in mm instead of cm, and this affects opening the data in PyTomography. I hope to fix and patch this soon. In the mean time, if you are using SIMIND v8.0, you can manually change the .h00 files.

Dear lukepolson

Thank you I soved this problem

If you fix this problem. Please let me know
Thanks again