Skip to content

Using ophys.ImagingPlane vs NWBFile.create_imaging_plane() #10

Answered by bendichter
jmdelahanty asked this question in Q&A
Discussion options

You must be logged in to vote

NWBFile.create_imaging_plane creates an instance of an ImagingPlane and automatically adds it to the NWBFile object. I would suspect that is more convenient for you.

TwoPhotonSeries takes an imaging_plane argument, which links it to a given imaging plane. So all together, it's:

nwbfile = NWBFile(...)
...
imaging_plane = nwbfile.create_imaging_plane(...)
...
nwbfile.add_acquisition(TwoPhotonSeries(imaging_plane=imaging_plane, ...))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jmdelahanty
Comment options

Answer selected by jmdelahanty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants