Skip to content

Commit

Permalink
🐛 uses six.zip for py2/3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Kiggins committed Apr 24, 2018
1 parent e528280 commit bfbc43d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neuroglia/datasets/crcns.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import tarfile
from collections import namedtuple
from itertools import izip
from six import zip
import requests
import pandas as pd
import numpy as np
Expand Down Expand Up @@ -127,7 +127,7 @@ def read_spikes_from_tar(f):

ts = f.extractfile(timestamps)
clu = f.extractfile(clusters)
for frame,cluster in izip(ts.readlines(),clu.readlines()):
for frame,cluster in zip(ts.readlines(),clu.readlines()):
if int(cluster)>1:
spike = dict(
time=float(frame) / SPIKES_HZ,
Expand Down

0 comments on commit bfbc43d

Please sign in to comment.