Skip to content

Commit

Permalink
Fix default event array wrong type (int32 to int64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackz314 committed Jun 14, 2023
1 parent 60ad461 commit ed17572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eeglabio/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def export_set(fname, data, sfreq, events, tmin, tmax, ch_names, event_id=None,
if len(ev_epoch) > 0 and max(ev_epoch) > trials:
# probably due to shifted/wrong events latency
# reset events to start at the beginning of each epoch
ev_epoch = np.arange(1, trials + 1)
ev_epoch = np.arange(1, trials + 1, dtype=np.int64)
ev_lat = (ev_epoch - 1) * epoch_len
logger.warning("Invalid event latencies, ignored for export.")

Expand Down

0 comments on commit ed17572

Please sign in to comment.