Skip to content

Close the nc file after reading cube info - #7573

Merged
PaulWessel merged 2 commits into
masterfrom
gmt_nc_read_cube_info-close-nc
Jun 26, 2023
Merged

PaulWessel merged 2 commits into
masterfrom
gmt_nc_read_cube_info-close-nc

Conversation

@seisman

@seisman seisman commented Jun 24, 2023

Copy link
Copy Markdown
Member

Description of proposed changes

It seems the gmt_nc_read_cube_info function forgets to close the NC file after reading the cube, which keeps the NC file opened and can't be deleted on Windows.

Please double-check if the change makes sense.

@seisman
seisman requested a review from PaulWessel June 24, 2023 05:27
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

Successfully merging this pull request may close these issues.

2 participants