Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinkSpec without name cannot be written #693

Closed
5 tasks done
rly opened this issue Jan 26, 2022 · 0 comments · Fixed by #694
Closed
5 tasks done

LinkSpec without name cannot be written #693

rly opened this issue Jan 26, 2022 · 0 comments · Fixed by #694
Assignees

Comments

@rly
Copy link
Contributor

rly commented Jan 26, 2022

Description

When a spec yaml contains:

groups:
- neurodata_type_def: A
  doc: ...
  links:
  - target_type: Device
    doc: Cameras used to record the videos.
    quantity: '*'  # this fails with any quantity ('?', '+', 1, '*'), but no name is often associated with quantity '*'

And a user provides a device, the following error is raised:

AttributeError: 'LinkSpec' object has no attribute 'data_type_def'
..\hdmf\src\hdmf\spec\spec.py:1014: AttributeError

Environment

Python Executable: Conda
Python Version: Python 3.9
Operating System: Windows
HDMF Version: dev

Checklist

  • Have you ensured the bug was not already reported ?
  • Have you included a brief and descriptive title?
  • Have you included a clear description of the problem you are trying to solve?
  • Have you included a minimal code snippet that reproduces the issue you are encountering?
  • Have you checked our Contributing document?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant