datfile_2_stim

nrv.utils.datfile_2_stim(fname, dt=0.005)[source]

Creates a stimulus from sampled data specified in a .dat file

Parameters:
  • fname (str) – name of the file containing the sampled data

  • dt (float, optional) – value of the sampling period, in ms. By default set to 0.005ms