Skip to content

[Bug]: Class generator does not work for Link specifications without a name #723

@ehennestad

Description

@ehennestad

What happened?

For more details, see this issue:
NeurodataWithoutBorders/nwb-schema#638

When generating the ndx-pose extension with MatNWB the following error is thrown:

Steps to Reproduce

>> generateExtension('~/ndx-pose-main/spec/ndx-pose.namespace.yaml')

Error Message

Error using indexing
The specified key is not present in this container.

Error in file.Link (line 20)
            obj.name = source('name');

Error in file.Group (line 116)
                    obj.links(i) = file.Link(sourceLinks{i});

Error in file.processClass (line 19)
                    class = file.Group(node);

Error in file.writeNamespace (line 16)
    [processed, classprops, inherited] = file.processClass(className, Namespace, pregenerated);

Error in generateExtension (line 59)
            file.writeNamespace(parsedNamespace.name, options.savedir);

Operating System

macOS

Matlab Version

R2023b

Code of Conduct

Metadata

Metadata

Assignees

Labels

category: bugerrors in the code or code behaviorpriority: highimpacts proper operation or use of feature important to most usersstatus: todosomething needs to be donetopic: nwb-schemarelated to nwb-schemas, namespaces and type implementations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions