Skip to content

Commit

Permalink
For Windows, make sure dataset is closed prior to deleting file
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Nov 10, 2024
1 parent b31f396 commit a09d1ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
make install
- name: Run unit tests
if: matrix.os != 'windows-latest'
run: |
pytest
Expand Down
1 change: 1 addition & 0 deletions gridmet_bmi/bmi_gridmet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def finalize(self) -> None:
printing reports.
"""
self._day = 0
self._model.dataset.close()
self._model.clear_cache()

def get_component_name(self) -> str:
Expand Down

0 comments on commit a09d1ea

Please sign in to comment.