-
-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESASky get_images Leaves Chandra Images open? #3003
Comments
I'm not sure, but this could be a Windows issue? This path: |
Thank you for the quick reply @keflavich I should also add that, after the code runs and I receive the error, I can't go to the folder and delete the Chandra image file. It gives me an error saying the file is in use by another program. It's only after I either restart the notebook's kernel, or shut the notebook down, that I can delete the image file. (Sorry I didn't include that before) |
Update: I can confirm that it is 'a windows thing' but I don't believe it has to do with the path. To check and see if the path's slashes were causing the problem, I replaced them with double backslash, and received the same error. "OSError: [Errno 22] Invalid argument: 'Maps\CHANDRA\acisf04963N004_full_img2.fits'" With the error remaining, and since everything worked fine with XMM images, it seems like the path is working fine. Then I went into an Ubuntu VM, and everything worked just fine. I don't know if there could be something specific about the Chandra image structure, or the method used to obtain/store them? |
Hello,
I am using a Jupyter notebook in Windows 10 to query several coordinate pairs. If there are two coordinates in the same field, say:
ra dec
19.67 -0.868
19.66 -0.874
it appears that the Chandra image downloaded for the first coordinate pair isn't closed properly, so an error is returned when an attempt is made to download the same image for the 2nd coordinate pair.
Here is my code (meant to run on a longer list of coordinates, not simply the two I gave as an example):
The code worked fine with XMM images (and the full coordinate list), but now I'm getting the following error when I try it with Chandra images:
If anyone knows what I am doing wrong (or if this is simply a known bug when using Jupyter in Windows), I'd would appreciate any help you could offer.
Thank you.
The text was updated successfully, but these errors were encountered: