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

[Bug]: NWBFile.stimulus_templates does not accept Images type #1637

Closed
3 tasks done
rly opened this issue Jan 19, 2023 · 0 comments · Fixed by #1638
Closed
3 tasks done

[Bug]: NWBFile.stimulus_templates does not accept Images type #1637

rly opened this issue Jan 19, 2023 · 0 comments · Fixed by #1638

Comments

@rly
Copy link
Contributor

rly commented Jan 19, 2023

What happened?

NWB 2.5 added support for NWBFile.stimulus_templates to store Images types (collections of image objects) and not just TimeSeries. In PyNWB, you cannot add an Images type using NWBFile.add_stimulus_template

Steps to Reproduce

image1 = Image(name='test_image1', data=np.ones((10, 10)))
images = Images(name='images_name', images=[image1])        
nwbfile.add_stimulus_template(images)

Traceback

No response

Operating System

macOS

Python Executable

Conda

Python Version

3.10

Package Versions

No response

Code of Conduct

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