Skip to content

Commit

Permalink
Merge pull request #5 from KylePoe/main
Browse files Browse the repository at this point in the history
Update oe_fast_loader.py
  • Loading branch information
jsiegle authored Jun 8, 2021
2 parents c59b458 + c72cb53 commit 5b4750f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open_ephys/analysis/formats/helpers/oe_fast_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def load_events(filename, recording_index):

header = readHeader(filename)

timestamps = np.array(np.memmap(filename, dtype='<i8', offset=1024)[::2])
timestamps = np.array(np.memmap(filename, dtype='<i8', offset=1024, mode='r')[::2])

data = np.memmap(filename, dtype='<u1', offset=1024, shape=(len(timestamps), EVENT_RECORD_SIZE //2))
data = np.memmap(filename, dtype='<u1', offset=1024, mode='r', shape=(len(timestamps), EVENT_RECORD_SIZE //2))

recording_number = np.array(data[:,14])

Expand Down

0 comments on commit 5b4750f

Please sign in to comment.