Skip to content

Commit

Permalink
Revert "adding starting_times as optional"
Browse files Browse the repository at this point in the history
This reverts commit 5d4391c
  • Loading branch information
Saksham20 committed Jul 26, 2021
1 parent 5d4391c commit a2708ce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nwb_conversion_tools/utils/spike_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a2708ce

Please sign in to comment.