Skip to content

Commit

Permalink
pmincaverage: fix imports for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdarwin committed Jun 20, 2016
1 parent 26296a2 commit 5c5fa0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/pmincaverage
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ from numpy import *
from argparse import ArgumentParser
import os.path
import sys
import Queue
try:
import queue
except:
import Queue as queue

def getslice(volhandle, slice, q,nslices):
"""collects hyperslabs for a particular volume handle. Designed to
Expand Down Expand Up @@ -94,7 +97,7 @@ if __name__ == "__main__":

# without multiprocessing, this queueing stuff probably doesn't make sense -- simplify
print("SLICE: %i" % i)
q = Queue.Queue()
q = queue.Queue()
for j in range(nfiles):
t = getslice(j,i,q,nslices)

Expand Down

0 comments on commit 5c5fa0e

Please sign in to comment.