eeg_tools.time2ind

eeg_tools.time2ind(h5file, t_start, t_end)[source]

Convert human readable 24hr times to indices used in given iEEG file container

Parameters:

h5file : str or h5py.File instance

String specifying file name (or path + filename) or h5py.File instance of HDF5 container to be accessed

t_start : list/NumPy 1darray

Start time in 24hr format. Syntax is [hh,mm,ss]

t_end : list/NumPy 1darray

End time in 24hr format. Syntax is [hh,mm,ss]

Returns:

ind_start : int

Index of iEEG array corresponding to provided start time t_start

ind_stop : int

Index of iEEG array corresponding to provided end time t_stop

See also

load_data
Load data from HDF5 container generated with read_eeg