Open EdwardBerman opened 1 year ago
Hi Eddie, thank you for pointing out this bug. I believe you are referring to this line and the ones below. If both outdir
and image_file
contain absolute paths, then that os.path.join()
call will yield a nonsense path and the code could fail.
What I still don't understand is why I never got this error message, despite using identical code. Perhaps MacOS (my operating system) is doing something I don't know about?
In any case, it's a simple fix: using os.path.basename()
as the image name instead of the whole path. I will implement that now.
OK, bug fix has been pushed and code seems to run OK on my laptop. Please update with whether or not that solves your problem.
The python debugger showcases the following error when running get_jwst_psf.py: