Using ophys.ImagingPlane vs NWBFile.create_imaging_plane() #10
-
|
Hello everyone! I was wondering about which of these two options I should be using when creating my NWB File for 2P experiments. How should I best use create_imaging_plane and is there any difference between it and the ophys.ImagingPlane method? If I build an imaging plane with the NWBFile method, can I still append a TwoPhotonSeries to it when I have that ready? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
nwbfile = NWBFile(...)
...
imaging_plane = nwbfile.create_imaging_plane(...)
...
nwbfile.add_acquisition(TwoPhotonSeries(imaging_plane=imaging_plane, ...)) |
Beta Was this translation helpful? Give feedback.
NWBFile.create_imaging_planecreates an instance of anImagingPlaneand automatically adds it to theNWBFileobject. I would suspect that is more convenient for you.TwoPhotonSeriestakes animaging_planeargument, which links it to a given imaging plane. So all together, it's: