Skip to content

Commit

Permalink
Try closing and removing downloaded file (#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Feb 16, 2024
1 parent 90d6b1d commit 905ef65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/gallery/general/plot_read_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,10 @@
# object and accessing its attributes, but it may be useful to explore the data in a
# more interactive, visual way. See :ref:`analysistools-explore` for an updated list of programs for
# exploring NWB files.

####################
# Close the open NWB file
# -----------------------
# It is good practice, especially on Windows, to close any files that you have opened.

io.close()
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def clean_up_tests():
"processed_data.nwb",
"raw_data.nwb",
"scratch_analysis.nwb",
# "sub-P11HMH_ses-20061101_ecephys+image.nwb", # TODO cannot delete this file on windows for some reason
"sub-P11HMH_ses-20061101_ecephys+image.nwb",
"test_edit.nwb",
"test_edit2.nwb",
"test_cortical_surface.nwb",
Expand Down

0 comments on commit 905ef65

Please sign in to comment.