[yt_analysis/yt] get_psize in load_uniform_grid breaks (issue #537)
New issue 537: get_psize in load_uniform_grid breaks https://bitbucket.org/yt_analysis/yt/issue/537/get_psize-in-load_uniform_gri... Matthew Turk: ``` #!python d = np.zeros((1024,1024,1024)) pf = load_uniform_grid({"Perturbation": d}, (1024,1024,1024), 100.0, bbox = np.array( [[mi, ma], [mi, ma], [mi, ma]] ), nprocs = 32) pf.h.print_stats() ``` This code (or switching to nprocs 8 or even 256) breaks with: ``` Traceback (most recent call last): File "convert.py", line 21, in <module> nprocs = 32) File "/home/mturk/yt/yt/yt/frontends/stream/data_structures.py", line 479, in load_uniform_grid psize = get_psize(np.array(data[key].shape), nprocs) File "/home/mturk/yt/yt/yt/utilities/decompose.py", line 136, in get_psize return p_size UnboundLocalError: local variable 'p_size' referenced before assignment ``` Responsible: xarthisius -- This is an issue notification from bitbucket.org. You are receiving this either because you are the owner of the issue, or you are following the issue.
participants (1)
-
Matthew Turk