Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackz314 committed Aug 2, 2022
1 parent 526a135 commit a9b941f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eeglabio/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def export_set(fname, data, sfreq, events, tmin, tmax, ch_names, event_id=None,

# EEGLAB latency, in units of data sample points
# ev_lat = [int(n) for n in self.events[:, 0]]
ev_lat = events[:, 0].astype(np.int64) # ensure same int type (int64) as duration
# ensure same int type (int64) as duration
ev_lat = events[:, 0].astype(np.int64)

# event durations should all be 0 except boundaries which we don't have
ev_dur = np.zeros((trials,), dtype=np.int64)
Expand Down Expand Up @@ -121,7 +122,8 @@ def export_set(fname, data, sfreq, events, tmin, tmax, ch_names, event_id=None,
events = fromarrays([all_types, all_lat, all_dur, all_epoch],
names=["type", "latency", "duration", "epoch"])

# construct epochs array, same as the indices for event epoch, except need to use array
# construct epochs array
# same as the indices for event epoch, except use array
ep_event = [np.array(n) for n in ev_epoch]
ep_lat = [np.array(n) for n in ev_lat]
ep_types = [np.array(n) for n in ev_types]
Expand Down

0 comments on commit a9b941f

Please sign in to comment.