diff --git a/nwb_conversion_tools/utils/spike_interface.py b/nwb_conversion_tools/utils/spike_interface.py index 9da677cc3..635725041 100644 --- a/nwb_conversion_tools/utils/spike_interface.py +++ b/nwb_conversion_tools/utils/spike_interface.py @@ -697,12 +697,9 @@ def data_generator(recording, channels_ids, unsigned_coercion, write_scaled): eseries_kwargs.update(data=H5DataIO(ephys_data, compression=compression, compression_opts=compression_opts)) if not use_times: eseries_kwargs.update( + starting_time=float(recording.frame_to_time(0)), rate=float(recording.get_sampling_frequency()) ) - if 'starting_time' not in eseries_kwargs: - eseries_kwargs.update( - starting_time=float(recording.frame_to_time(0)) - ) else: eseries_kwargs.update( timestamps=H5DataIO(