Fixed progressbar again
This commit is contained in:
parent
01059f145b
commit
c80e2833e0
@ -770,10 +770,10 @@ def spherical_projection(int Nside,
|
||||
density_view = density
|
||||
|
||||
if progress != 0:
|
||||
p = pb.ProgressBar(maxval=outm.size,widgets=[pb.BouncingBar(), pb.ETA()]).start()
|
||||
p = pb.ProgressBar(maxval=outm.size,widgets=[pb.Bar(), pb.ETA()]).start()
|
||||
|
||||
N = outm.size
|
||||
job_done = view.array(shape=(1,), format="i", itemsize=sizeof(int))
|
||||
job_done = view.array(shape=(N,), format="i", itemsize=sizeof(int))
|
||||
job_done[:] = 0
|
||||
theta,phi = hp.pix2ang(Nside, np.arange(N))
|
||||
with nogil, parallel():
|
||||
|
Loading…
Reference in New Issue
Block a user