diff --git a/tutorials/html/icephys.html b/tutorials/html/icephys.html index fe4b894c..c8a4f738 100644 --- a/tutorials/html/icephys.html +++ b/tutorials/html/icephys.html @@ -6,7 +6,7 @@ Neurodata Without Borders: Neurophysiology (NWB:N), Intracellular Electrophysiology Tutorial

Neurodata Without Borders: Neurophysiology (NWB:N), Intracellular Electrophysiology Tutorial

How to write intracellular ephys data to an NWB file using matnwb.

author: Ben Dichter
 contact: ben.dichter@lbl.gov
-last edited: May 6, 2019

Contents

NWB file

All contents get added to the NWB file, which is created with the following command

date = datetime(2018, 3, 1, 12, 0, 0);
-session_start_time = datetime(date, ...
-    'Format', 'yyyy-MM-dd''T''HH:mm:ssZZ', ...
-    'TimeZone', 'local');
+last edited: May 6, 2019

Contents

NWB file

All contents get added to the NWB file, which is created with the following command

session_start_time = datetime(2018, 3, 1, 12, 0, 0,'TimeZone', 'local');
 
 nwb = nwbfile( ...
     'session_description', 'a test NWB File', ...
@@ -119,7 +116,7 @@
                            intervals_trials: []
                                  processing: [1×1 types.untyped.Set]
                         session_description: 'a test NWB File'
-                         session_start_time: 2018-03-01T12:00:00.000000-08:00
+                         session_start_time: 2018-03-01T12:00:00.000000-05:00
                       stimulus_presentation: [1×1 types.untyped.Set]
                          stimulus_templates: [1×1 types.untyped.Set]
                   timestamps_reference_time: []
@@ -169,6 +166,7 @@
         'stimulus_description', 'description of stimulus'));
 

Write

nwbExport(nwb, 'test_icephys_out.nwb');
 
Warning: Overwriting test_icephys_out.nwb 
+Warning: File 'test_icephys_out.nwb' not found. 
 

Read

nwb_in = nwbRead('test_icephys_out.nwb');
 
 mem_pot_1 = nwb_in.acquisition.get('response_name_here');
@@ -291,10 +289,7 @@
 % All contents get added to the NWB file, which is created with the
 % following command
 
-date = datetime(2018, 3, 1, 12, 0, 0);
-session_start_time = datetime(date, ...
-    'Format', 'yyyy-MM-dd''T''HH:mm:ssZZ', ...
-    'TimeZone', 'local');
+session_start_time = datetime(2018, 3, 1, 12, 0, 0,'TimeZone', 'local');
 
 nwb = nwbfile( ...
     'session_description', 'a test NWB File', ...
diff --git a/tutorials/icephys.m b/tutorials/icephys.m
index 4e49975b..dcddf447 100644
--- a/tutorials/icephys.m
+++ b/tutorials/icephys.m
@@ -9,10 +9,7 @@
 % All contents get added to the NWB file, which is created with the
 % following command
 
-date = datetime(2018, 3, 1, 12, 0, 0);
-session_start_time = datetime(date, ...
-    'Format', 'yyyy-MM-dd''T''HH:mm:ssZZ', ...
-    'TimeZone', 'local');
+session_start_time = datetime(2018, 3, 1, 12, 0, 0,'TimeZone', 'local');
 
 nwb = nwbfile( ...
     'session_description', 'a test NWB File', ...