GuyRon1 / FFT-Hydrodynamic-sensing

This code is a fft algorithm used to analyze the vortex shedding freq
0 stars 0 forks source link

PermissionError: [Errno 13] Permission denied #7

Open GuyRon1 opened 6 days ago

GuyRon1 commented 6 days ago

https://github.com/GuyRon1/FFT-Hydrodynamic-sensing/blame/7558da8e514c187a63fed6971b76b1f51e21d591/vortex%20finder.ipynb#L328

Hi Alex, I am trying to test my code after seeing a new problem detecting the vortices. I am trying to run the code more times to check if the vortices detected change but on this line, I get the error: [Errno 13] Permission denied: 'C:\Users\guyro\Desktop\UNI TAU\3RD YEAR\A\RESEARCH PROJECT\Vortex detection\Vortex findinf\VEC MAP\NetCFD_Files\NetCFD_data.nc'

Every time I close pycharm and run the code for the first time I don't get this error message but running it a second time brings the error. it seems the "NetCFD_data.nc" file is staying open no matter how I try to close it and is not being edited at all. Even after closing pycharm and running the code again for a different timestamp, the vortices map at the end of the code doesn't seem to change.

I'm ashamed to admit that I tried to solve this problem for 5 hours and couldn't succeed. Thanks ahead for your help Guy

alexlib commented 6 days ago

manually delete the file before running for the second time. Python cannot simply overwrite it


From: GuyRon1 @.> Sent: Thursday, September 12, 2024 9:59:13 PM To: GuyRon1/FFT-Hydrodynamic-sensing @.> Cc: Alex Liberzon @.>; Assign @.> Subject: [GuyRon1/FFT-Hydrodynamic-sensing] PermissionError: [Errno 13] Permission denied (Issue #7)

https://github.com/GuyRon1/FFT-Hydrodynamic-sensing/blame/7558da8e514c187a63fed6971b76b1f51e21d591/vortex%20finder.ipynb#L328

Hi Alex, I am trying to test my code after seeing a new problem detecting the vortices. I am trying to run the code more times to check if the vortices detected change but on this line, I get the error: [Errno 13] Permission denied: 'C:\Users\guyro\Desktop\UNI TAU\3RD YEAR\A\RESEARCH PROJECT\Vortex detection\Vortex findinf\VEC MAP\NetCFD_Files\NetCFD_data.nc'

Every time I close pycharm and run the code for the first time I don't get this error message but running it a second time brings the error. it seems the "NetCFD_data.nc" file is staying open no matter how I try to close it and is not being edited at all. Even after closing pycharm and running the code again for a different timestamp, the vortices map at the end of the code doesn't seem to change.

I'm ashamed to admit that I tried to solve this problem for 5 hours and couldn't succeed. Thanks ahead for your help Guy

— Reply to this email directly, view it on GitHubhttps://github.com/GuyRon1/FFT-Hydrodynamic-sensing/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFWMZWT6YYAFDLEQTCNO4TZWHQADAVCNFSM6AAAAABOD4MHJKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDGMJSHAZTIOI. You are receiving this because you were assigned.Message ID: @.***>

alexlib commented 6 days ago

or change the file name


From: Alex Liberzon @.> Sent: Friday, September 13, 2024 12:18:32 AM To: GuyRon1/FFT-Hydrodynamic-sensing @.>; GuyRon1/FFT-Hydrodynamic-sensing @.> Cc: Assign @.> Subject: Re: [GuyRon1/FFT-Hydrodynamic-sensing] PermissionError: [Errno 13] Permission denied (Issue #7)

manually delete the file before running for the second time. Python cannot simply overwrite it


From: GuyRon1 @.> Sent: Thursday, September 12, 2024 9:59:13 PM To: GuyRon1/FFT-Hydrodynamic-sensing @.> Cc: Alex Liberzon @.>; Assign @.> Subject: [GuyRon1/FFT-Hydrodynamic-sensing] PermissionError: [Errno 13] Permission denied (Issue #7)

https://github.com/GuyRon1/FFT-Hydrodynamic-sensing/blame/7558da8e514c187a63fed6971b76b1f51e21d591/vortex%20finder.ipynb#L328

Hi Alex, I am trying to test my code after seeing a new problem detecting the vortices. I am trying to run the code more times to check if the vortices detected change but on this line, I get the error: [Errno 13] Permission denied: 'C:\Users\guyro\Desktop\UNI TAU\3RD YEAR\A\RESEARCH PROJECT\Vortex detection\Vortex findinf\VEC MAP\NetCFD_Files\NetCFD_data.nc'

Every time I close pycharm and run the code for the first time I don't get this error message but running it a second time brings the error. it seems the "NetCFD_data.nc" file is staying open no matter how I try to close it and is not being edited at all. Even after closing pycharm and running the code again for a different timestamp, the vortices map at the end of the code doesn't seem to change.

I'm ashamed to admit that I tried to solve this problem for 5 hours and couldn't succeed. Thanks ahead for your help Guy

— Reply to this email directly, view it on GitHubhttps://github.com/GuyRon1/FFT-Hydrodynamic-sensing/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFWMZWT6YYAFDLEQTCNO4TZWHQADAVCNFSM6AAAAABOD4MHJKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDGMJSHAZTIOI. You are receiving this because you were assigned.Message ID: @.***>