Skip to content

Commit

Permalink
update session_start_time in icephys
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed May 14, 2019
1 parent d9105e6 commit 812011d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
15 changes: 5 additions & 10 deletions tutorials/html/icephys.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Neurodata Without Borders: Neurophysiology (NWB:N), Intracellular Electrophysiology Tutorial</title><meta name="generator" content="MATLAB 9.5"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2019-05-06"><meta name="DC.source" content="icephys.m"><style type="text/css">
--><title>Neurodata Without Borders: Neurophysiology (NWB:N), Intracellular Electrophysiology Tutorial</title><meta name="generator" content="MATLAB 9.5"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2019-05-14"><meta name="DC.source" content="icephys.m"><style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -68,10 +68,7 @@

</style></head><body><div class="content"><h1>Neurodata Without Borders: Neurophysiology (NWB:N), Intracellular Electrophysiology Tutorial</h1><!--introduction--><p>How to write intracellular ephys data to an NWB file using matnwb.</p><pre>author: Ben Dichter
contact: [email protected]
last edited: May 6, 2019</pre><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">NWB file</a></li><li><a href="#3">Subject</a></li><li><a href="#4">Recording Meta-data</a></li><li><a href="#5">Stimulus</a></li><li><a href="#6">Response</a></li><li><a href="#7">Write</a></li><li><a href="#8">Read</a></li></ul></div><h2 id="1">NWB file</h2><p>All contents get added to the NWB file, which is created with the following command</p><pre class="codeinput">date = datetime(2018, 3, 1, 12, 0, 0);
session_start_time = datetime(date, <span class="keyword">...</span>
<span class="string">'Format'</span>, <span class="string">'yyyy-MM-dd''T''HH:mm:ssZZ'</span>, <span class="keyword">...</span>
<span class="string">'TimeZone'</span>, <span class="string">'local'</span>);
last edited: May 6, 2019</pre><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">NWB file</a></li><li><a href="#3">Subject</a></li><li><a href="#4">Recording Meta-data</a></li><li><a href="#5">Stimulus</a></li><li><a href="#6">Response</a></li><li><a href="#7">Write</a></li><li><a href="#8">Read</a></li></ul></div><h2 id="1">NWB file</h2><p>All contents get added to the NWB file, which is created with the following command</p><pre class="codeinput">session_start_time = datetime(2018, 3, 1, 12, 0, 0,<span class="string">'TimeZone'</span>, <span class="string">'local'</span>);

nwb = nwbfile( <span class="keyword">...</span>
<span class="string">'session_description'</span>, <span class="string">'a test NWB File'</span>, <span class="keyword">...</span>
Expand Down Expand Up @@ -119,7 +116,7 @@
intervals_trials: []
processing: [1&times;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&times;1 types.untyped.Set]
stimulus_templates: [1&times;1 types.untyped.Set]
timestamps_reference_time: []
Expand Down Expand Up @@ -169,6 +166,7 @@
<span class="string">'stimulus_description'</span>, <span class="string">'description of stimulus'</span>));
</pre><h2 id="7">Write</h2><pre class="codeinput">nwbExport(nwb, <span class="string">'test_icephys_out.nwb'</span>);
</pre><pre class="codeoutput">Warning: Overwriting test_icephys_out.nwb
Warning: File 'test_icephys_out.nwb' not found.
</pre><h2 id="8">Read</h2><pre class="codeinput">nwb_in = nwbRead(<span class="string">'test_icephys_out.nwb'</span>);

mem_pot_1 = nwb_in.acquisition.get(<span class="string">'response_name_here'</span>);
Expand Down Expand Up @@ -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', ...
Expand Down
5 changes: 1 addition & 4 deletions tutorials/icephys.m
Original file line number Diff line number Diff line change
Expand Up @@ -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', ...
Expand Down

0 comments on commit 812011d

Please sign in to comment.