Skip to content

Commit 1e6a513

Browse files
committed
Fix #1157
1 parent 897c5dd commit 1e6a513

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pynwb/validate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from hdmf.build import TypeMap as TypeMap
88
from hdmf.backends.hdf5 import HDF5IO
99

10-
from pynwb import validate, available_namespaces, NWBHDF5IO
10+
from pynwb import validate, CORE_NAMESPACE, NWBHDF5IO
1111
from pynwb.spec import NWBDatasetSpec, NWBGroupSpec, NWBNamespace
1212

1313

@@ -75,7 +75,7 @@ def main():
7575
specloc = "cached namespace information"
7676
else:
7777
manager = None
78-
namespaces = available_namespaces()
78+
namespaces = [CORE_NAMESPACE]
7979
specloc = "pynwb namespace information"
8080
print("The file {} has no cached namespace information. "
8181
"Falling back to {}.".format(path, specloc), file=sys.stderr)
@@ -92,7 +92,7 @@ def main():
9292
specloc = "--nspath namespace information"
9393
else:
9494
manager = None
95-
namespaces = available_namespaces()
95+
namespaces = [CORE_NAMESPACE]
9696
specloc = "pynwb namespace information"
9797

9898
if args.ns:

0 commit comments

Comments
 (0)