From d9105e633019015f5b7499531449de445d9b4fa8 Mon Sep 17 00:00:00 2001 From: "!git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`" Date: Tue, 14 May 2019 15:52:04 -0400 Subject: [PATCH 1/2] update session_start_time in ephys --- tutorials/ecephys.m | 6 ++---- tutorials/html/ecephys.html | 16 ++++++---------- tutorials/html/ecephys.png | Bin 1670 -> 1670 bytes tutorials/html/ecephys_01.png | Bin 10206 -> 10206 bytes 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/tutorials/ecephys.m b/tutorials/ecephys.m index c9dbaca4..e77c3576 100644 --- a/tutorials/ecephys.m +++ b/tutorials/ecephys.m @@ -9,10 +9,8 @@ % 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', ... 'identifier', 'mouse004_day4', ... diff --git a/tutorials/html/ecephys.html b/tutorials/html/ecephys.html index 2581657f..2f8cfa1a 100644 --- a/tutorials/html/ecephys.html +++ b/tutorials/html/ecephys.html @@ -6,7 +6,7 @@ Neurodata Without Borders: Neurophysiology (NWB:N), Extracellular Electrophysiology Tutorial

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

How to write ecephys data to an NWB file using matnwb.

author: Ben Dichter
 contact: ben.dichter@gmail.com
-last edited: March 5, 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: March 5, 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', ...
     'identifier', 'mouse004_day4', ...
@@ -118,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+0000
+                         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: []
@@ -339,10 +337,8 @@
 % 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', ...
     'identifier', 'mouse004_day4', ...
diff --git a/tutorials/html/ecephys.png b/tutorials/html/ecephys.png
index 90350243b63248596df10996d9e84ddd037b6418..90f0770ffaaea6675f89328c07f8b13c108d4784 100644
GIT binary patch
delta 20
bcmZqUZR4Gw&B@9qY%Kcu?Q+|VCP8cfJ$wdQ

delta 20
bcmZqUZR4Gw&B@FvXf74=`)2w^lOQ$#I^6~-

diff --git a/tutorials/html/ecephys_01.png b/tutorials/html/ecephys_01.png
index 742a0e13c4406c2c2aab5b310fe7acc227b90e21..88015c358d8f63068b476b38633d5346c7ed49c7 100644
GIT binary patch
delta 20
ccmccTf6sq{HYY2eu(9apx65renygX>092(22LJ#7

delta 20
ccmccTf6sq{HYYQypt)4c@0;lxO;)J`08$1A)&Kwi


From 812011dc9007e287c4afa0caff0f6fe158a3c02c Mon Sep 17 00:00:00 2001
From: "!git for-each-ref --format='%(refname:short)' `git symbolic-ref HEAD`"
 
Date: Tue, 14 May 2019 15:53:29 -0400
Subject: [PATCH 2/2] update session_start_time in icephys

---
 tutorials/html/icephys.html | 15 +++++----------
 tutorials/icephys.m         |  5 +----
 2 files changed, 6 insertions(+), 14 deletions(-)

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', ...