Skip to content

Aggregated Temperature Product: Permission error with temporary file #167

@mphemming

Description

@mphemming

File ~<PATH>\Code\python-aodntools-master\python-aodntools-master\aodntools\timeseries_products\aggregated_timeseries.py:363 in main_aggregator
shutil.move(temp_outfile, os.path.join(output_dir, ncout_path))

File ~\Anaconda3\lib\shutil.py:812 in move
os.unlink(src)

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Code\python-aodntools-master\python-aodntools-master\tmp9bpsj45m.nc'

I use Spyder/Jupyter notebook and I often get this error when modifying a NetCDF file while a file of the same name is currently imported into the workspace.

The LTSP is created successfully, but the temporary file is left unmodified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions