Skip to content

Commit

Permalink
Add more detailed device example to ophys tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Nov 27, 2024
1 parent 5ed025c commit 725faf5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
33 changes: 24 additions & 9 deletions tutorials/html/ophys.html

Large diffs are not rendered by default.

Binary file modified tutorials/ophys.mlx
Binary file not shown.
20 changes: 17 additions & 3 deletions tutorials/private/mcode/ophys.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,28 @@
% |*ImagingPlane*|>.
%
%
%
% Create a <https://neurodatawithoutborders.github.io/matnwb/doc/+types/+core/Device.html
% |*Device*|> representing a two-photon microscope. The fields |description|,
% |manufacturer|, |model_number|, |model_name|, and |serial_number| are optional,
% but recommended. Then create an <https://neurodatawithoutborders.github.io/matnwb/doc/+types/+core/OpticalChannel.html
% |*OpticalChannel*|> and add both of these to the <https://neurodatawithoutborders.github.io/matnwb/doc/+types/+core/ImagingPlane.html
% |*ImagingPlane*|>|*.*|

device = types.core.Device( ...
'description', 'My two-photon microscope', ...
'manufacturer', 'Loki Labs', ...
'model_number', 'ABC-123', ...
'model_name', 'Loki 1.0', ...
'serial_number', '1234567890');

% Add device to nwb object
nwb.general_devices.set('Device', device);

optical_channel = types.core.OpticalChannel( ...
'description', 'description', ...
'emission_lambda', 500.);

device = types.core.Device();
nwb.general_devices.set('Device', device);

imaging_plane_name = 'imaging_plane';
imaging_plane = types.core.ImagingPlane( ...
'optical_channel', optical_channel, ...
Expand Down

0 comments on commit 725faf5

Please sign in to comment.