Skip to content

Commit

Permalink
V0.2.4 (#19)
Browse files Browse the repository at this point in the history
* fix bizarre rounding issue

* update version
  • Loading branch information
szorowi1 authored Oct 9, 2019
1 parent 8be5f90 commit 02e73a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nivlink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Niv Lab software for preprocessing eyelink eyetracking data."""

__version__ = '0.2.3'
__version__ = '0.2.4'

from .raw import (Raw)
from .epochs import (Epochs)
Expand Down
2 changes: 1 addition & 1 deletion nivlink/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, raw, events, tmin=0, tmax=1, picks=None, eyes=None,

## Make epochs.
self.data = np.ones((events.shape[0], self.times.size, len(self.eye_names), len(self.ch_names))) * np.nan
index = np.column_stack((raw_ix, epoch_ix)).astype(int)
index = np.ceil(np.column_stack((raw_ix, epoch_ix))).astype(int)
for i, (r1, r2, e1, e2) in enumerate(index):
# TODO: This ugly syntax should be replaced in time (numpy issues 13255)
self.data[i,e1:e2,...] = deepcopy(raw.data[r1:r2,eye_ix][...,ch_ix])
Expand Down

0 comments on commit 02e73a0

Please sign in to comment.