lynx-x-ray-observatory / soxs

SOXS: Simulated Observations of X-ray Sources
Other
16 stars 3 forks source link

instrument_simulator path length issue #17

Closed jakesbennett closed 1 year ago

jakesbennett commented 1 year ago

Hi!

If the length of the name of the path to a simput file given as input to instrument_simulator is longer than a certain number of characters (I brute force worked out 105 or longer...), then zero photons are found to come from the source.

However if the file name is shorter, for the same file, photons are detected.

No error is raised to say the file failed to be imported for example, you just get the "No events from any of the sources in the catalog were detected!” message.

Shortening the filename "solves" this as a temporary workaround and I now get consistent results with the same file, for some long path lengths this could still be an issue though.

jzuhone commented 1 year ago

This is probably resolved by #19, feel free to reopen if not.