Skip to content
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

Fix temporary workaround for File Permission Locks on Windows #84

Open
nfb2021 opened this issue Oct 10, 2024 · 0 comments
Open

Fix temporary workaround for File Permission Locks on Windows #84

nfb2021 opened this issue Oct 10, 2024 · 0 comments

Comments

@nfb2021
Copy link
Collaborator

nfb2021 commented Oct 10, 2024

Windows keeps a file lock on the created pytesmo netCDF file. This prevents the program from a) renaming the file or b) removing it. Both options are required, though, as the pytesmo filename is needed as new filename for the final QA4SM netCDF files with new structure.

For now, under windows, this is circumvented by copying the pytesmo file to a temporary directory and doing file operations on this copy there, instead. Then, in the proper validation output directory, the unused original pytesmo file may be renamed a./o. removed.

This is done here:

if sys.platform.startswith("win"):

This workaround should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant