You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can't hide this behind a try/except: pass statement, as if the file exists already, then no one seems to be able to overwrite it.
The problem there is that the automated mass download script executes all the files that are younger than one month - meaning that someone has requested this data within the last month, so lets make sure it gets downloaded.
The problem will just keeping the existing file copy is that if I request to download some job, lets say u-aa012 once, but never again, the age of the download script will be my old file. When that file is older than a month - downloads will stop.However, if someone else wanted to keep u-aa012 up to date, they can't do it!
My solution is to add usernames to the download script filename. The downside is that the same job may be requested to be downloaded more than once - but this happens in series so the second one is unlikely to find any new files and will complete quickly!
This line fails if you try to run over a job that someone else already created.
bgcval2/bgcval2/download_from_mass.py
Line 412 in 965de20
Same issue for this line:
https://github.com/valeriupredoi/bgcval2/blob/main/bgcval2/download_from_mass.py#L480
Trying to overwrite a file that someone else owns.
The text was updated successfully, but these errors were encountered: