File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1111pyabf
1212pynwb == 3.1.2
1313pyYAML
14+ python-dateutil
1415ruamel.yaml < 0.18.0
1516scipy
1617simplejson
Original file line number Diff line number Diff line change 1414import pytest
1515from ipfx .utilities import inject_sweep_table
1616
17+ from dateutil .tz import tzlocal
18+
1719class CliRunner :
1820
1921 def __init__ (
@@ -54,7 +56,7 @@ def simple_nwb(base_path):
5456 nwbfile = pynwb .NWBFile (
5557 session_description = "test session" ,
5658 identifier = 'test session' ,
57- session_start_time = datetime .now ()
59+ session_start_time = datetime .now (tzlocal () )
5860 )
5961
6062 inject_sweep_table (nwbfile )
Original file line number Diff line number Diff line change 1515import pynwb
1616import h5py
1717
18+ from dateutil .tz import tzlocal
1819from ipfx .attach_metadata .sink import nwb2_sink
1920from ipfx .utilities import inject_sweep_table
2021
@@ -24,7 +25,7 @@ def nwbfile():
2425 _nwbfile = pynwb .NWBFile (
2526 session_description = "test session" ,
2627 identifier = 'test session' ,
27- session_start_time = datetime .now ()
28+ session_start_time = datetime .now (tzlocal () )
2829 )
2930 dev = pynwb .device .Device (name = "my_device" )
3031 _nwbfile .add_device (dev )
Original file line number Diff line number Diff line change 77from pynwb .icephys import CurrentClampStimulusSeries , CurrentClampSeries
88import numpy as np
99from ipfx .utilities import inject_sweep_table
10+ from dateutil .tz import tzlocal
1011
1112from dictdiffer import diff
1213
@@ -28,8 +29,8 @@ def nwbfile_to_test():
2829 nwbfile = pynwb .NWBFile (
2930 session_description = "test nwb data" ,
3031 identifier = 'test session' ,
31- session_start_time = datetime .datetime .now (),
32- file_create_date = datetime .datetime .now ()
32+ session_start_time = datetime .datetime .now (tzlocal () ),
33+ file_create_date = datetime .datetime .now (tzlocal () )
3334 )
3435
3536 device = nwbfile .create_device (name = 'electrode_0' )
Original file line number Diff line number Diff line change 33import pynwb
44import numpy as np
55
6+ from dateutil .tz import tzlocal
7+
68from ipfx .nwb_append import append_spike_times
79
810
@@ -11,8 +13,8 @@ def make_skeleton_nwb2_file(nwb2_file_name):
1113 nwbfile = pynwb .NWBFile (
1214 session_description = 'test icephys' ,
1315 identifier = 'session_uuid' ,
14- session_start_time = datetime .datetime .now (),
15- file_create_date = datetime .datetime .now ()
16+ session_start_time = datetime .datetime .now (tzlocal () ),
17+ file_create_date = datetime .datetime .now (tzlocal () )
1618 )
1719
1820 device = nwbfile .create_device (name = 'electrode_0' )
You can’t perform that action at this time.
0 commit comments