Skip to content

Commit

Permalink
Add type conversions for uniform types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackz314 committed May 11, 2021
1 parent 5553e59 commit c091379
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eeglabio/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def export_set(fname, data, sfreq, events, tmin, tmax, ch_names, event_id=None,
pnts=float(data.shape[1]),
trials=trials,
srate=sfreq,
xmin=tmin,
xmax=tmax,
xmin=float(tmin),
xmax=float(tmax),
ref=ref_channels,
chanlocs=chanlocs,
event=events,
Expand Down
4 changes: 2 additions & 2 deletions eeglabio/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def export_set(fname, data, sfreq, ch_names, ch_locs=None, annotations=None,
ref_channels = " ".join(ref_channels)

eeg_d = dict(data=data, setname=fname, nbchan=data.shape[0],
pnts=data.shape[1], trials=1, srate=sfreq, xmin=0,
xmax=data.shape[1] / sfreq, ref=ref_channels,
pnts=float(data.shape[1]), trials=1, srate=sfreq, xmin=0.0,
xmax=float(data.shape[1] / sfreq), ref=ref_channels,
chanlocs=chanlocs, icawinv=[], icasphere=[], icaweights=[])

if annotations is not None:
Expand Down

0 comments on commit c091379

Please sign in to comment.