Closed tekkamanmaverick closed 3 years ago
Can you put a short script here that reproduces this and the exact error message you get?
In [13]: events_z.write_simput_file("./test/sloshing", overwrite=True) pyxsim : [INFO ] 2018-09-11 09:18:27,417 Writing SIMPUT catalog file ./test/sloshing_simput.fits and SIMPUT photon list file ./test/sloshing_phlist.fits.
IOError Traceback (most recent call last)
I thought about this today a bit, and I decided I need to research how the SIMPUT library handles this because I'm not sure if their files support absolute paths or not (I suspect they do).
This was resolved in pyXSIM 3.0, so closing.
Hi John, If I use events.write_simput_file(path+name, overwrite=True) to write the fits file, the next operation soxs.instrument_simulator will not find the phlist.fits. The path which is path/path is not match. So write_simput_file can only save the file in the current path.