Skip to content

Commit c98b898

Browse files
committed
Update NwbFile.m
1 parent e307dff commit c98b898

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NwbFile.m

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ function export(obj, filename, mode)
161161
function embedSpecifications(obj, output_file_id)
162162
jsonSpecs = schemes.exportJson();
163163

164+
if isempty(jsonSpecs)
165+
% Call generateCore to create cached namespaces
166+
generateCore()
167+
jsonSpecs = schemes.exportJson();
168+
end
169+
164170
% Resolve the name of all types and parent types that are
165171
% included in this file. This will be used to filter the specs
166172
% to embed, so that only specs with used neurodata types are

0 commit comments

Comments
 (0)