File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ def _load_np_probe_features():
2828 global _np_probe_features
2929 if _np_probe_features is None :
3030 probe_features_filepath = Path (__file__ ).absolute ().parent / Path ("resources/neuropixels_probe_features.json" )
31- _np_probe_features = json .load (open (probe_features_filepath , "r" ))
31+ with open (probe_features_filepath , "r" ) as f :
32+ _np_probe_features = json .load (f )
3233 return _np_probe_features
3334
3435
Original file line number Diff line number Diff line change 44from probeinterface import __version__ as version
55
66json_schema_file = Path (__file__ ).absolute ().parent / "schema" / "probe.json.schema"
7- schema = json .load (open (json_schema_file , "r" ))
7+ with open (json_schema_file , "r" ) as f :
8+ schema = json .load (f )
89
910
1011def validate_probe_dict (probe_dict ):
You can’t perform that action at this time.
0 commit comments