Skip to content

Commit 5a43911

Browse files
Update src/trodes_to_nwb/database_validation.py
Co-authored-by: Copilot <[email protected]>
1 parent f669f95 commit 5a43911

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trodes_to_nwb/database_validation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def yaml_database_validation(yaml_path: str):
3535
Path to the YAML file.
3636
"""
3737

38-
yaml_data = yaml.safe_load(open(yaml_path))
38+
with open(yaml_path) as f:
39+
yaml_data = yaml.safe_load(f)
3940
try:
4041
from spyglass.common import CameraDevice, Task
4142
except ImportError:

0 commit comments

Comments
 (0)