kammerje / spaceKLIP

Pipeline for reducing JWST high-contrast imaging data. Published in Kammerer et al. 2022 and Carter et al. 2022.
https://ui.adsabs.harvard.edu/abs/2022SPIE12180E..3NK/abstract
MIT License
16 stars 10 forks source link

make_psfmasks.py issue on windows #154

Closed b-michelson closed 5 months ago

b-michelson commented 6 months ago

`Traceback (most recent call last):

File "C:\Users\becca\spaceKLIP\spaceKLIP\make_psfmasks.py", line 123, in hdul.writeto('resources/transmissions/' + fitsfile, output_verify='fix', overwrite=True)

File "C:\Users\becca\anaconda3\lib\site-packages\astropy\io\fits\hdu\hdulist.py", line 1010, in writeto fileobj = _File(fileobj, mode=mode, overwrite=overwrite)

File "C:\Users\becca\anaconda3\lib\site-packages\astropy\io\fits\file.py", line 217, in init self._open_filename(fileobj, mode, overwrite)

File "C:\Users\becca\anaconda3\lib\site-packages\astropy\io\fits\file.py", line 615, in _open_filename self._overwrite_existing(overwrite, None, True)

File "C:\Users\becca\anaconda3\lib\site-packages\astropy\io\fits\file.py", line 496, in _overwrite_existing os.remove(self.name)

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'resources/transmissions/JWST_MIRI_F1065C_transmission_webbpsf-ext_v2.fits'`

AarynnCarter commented 5 months ago

Hi Becca, what was the outcome of you trying to get spaceKLIP working on a Windows machine? I remember that we realised that the jwst pipeline does not support Windows, so curious what your next steps were / are. Thanks!

b-michelson commented 5 months ago

Hi Aarynn,

In all honesty, I've been using our lab computer here at Smith for spaceKLIP and haven't pursued running it on my Windows machine yet. I'm considering running a virtual Mac machine on my laptop but have yet to do some research on how to do that!

Becca

On Tue, Apr 16, 2024 at 12:02 PM Aarynn Carter @.***> wrote:

Hi Becca, what was the outcome of you trying to get spaceKLIP working on a Windows machine? I remember that we realised that the jwst pipeline does not support Windows, so curious what your next steps were / are. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/kammerje/spaceKLIP/issues/154#issuecomment-2059439131, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAKGIRN3O4LZYSGEX2T3JPDY5VDRVAVCNFSM6AAAAABFAESIHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZGQZTSMJTGE . You are receiving this because you authored the thread.Message ID: @.***>

AarynnCarter commented 5 months ago

Okay no worries, in that case I will close this, and assume that spaceKLIP similarly does not support Windows at this time. Thanks :)