Skip to content

Commit

Permalink
Fix NwbFile searchFor method for Sets
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-mbf committed Feb 22, 2022
1 parent 5cba5a4 commit ffd1533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NwbFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function embedSpecifications(~, fid)
getProperty = @(x, prop) x.(prop);
elseif isa(obj, 'types.untyped.Set')
propertyNames = obj.keys();
getProperty = @(x, prop)x(prop);
getProperty = @(x, prop)x.(prop);
elseif isa(obj, 'types.untyped.Anon')
propertyNames = {obj.name};
getProperty = @(x, prop) x.value;
Expand Down

0 comments on commit ffd1533

Please sign in to comment.