You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Athena++ frontend crashes when reading in unstructured meshes with refinement. The problem is on line 109 of yt/frontends/athena_pp/data_structures.py, where bc[i] is an array with no shape. I'm using yt-dev but I was able to reproduce the problem in yt 3.4.0.
Code for reproduction
To reproduce, just generate the initial date for the Fishbone Moncrief Torus as described here in the Athena++ tutorial. File has been curldropped here.
Then try to read it in with the following code (I used python2, but should be the same for python3):
meaning the bc object contains some arrays with no shape... i.e., len(bc[i].shape) == 0. This causes a problem in the loop below which contains multiple calls to bc[i][j] for various i and j.
I can make the code run to completion by adding the following lines in the loop that accesses bc[i][j], but I worry that this is causing yt to read in incomplete data.
iflen(bc[i].shape) ==0:
continue
I was hoping John, or whomever is currently caring for the Athena++ frontend could take a look at this.
Thanks!
Version Information
Operating System: Linux/Debian Testing
Python Version: 2.7 (but the problem appears in python 3 too)
yt version: 3.5-dev but can reproduce on 3.4.0
I installed yt via git.
The text was updated successfully, but these errors were encountered:
This has likely been resolved by #4562. Given how long it's been, I don't know if @Yurlungur wants to try again, but I'm closing this unless it needs reopening.
Bug report
Bug summary
The Athena++ frontend crashes when reading in unstructured meshes with refinement. The problem is on line 109 of
yt/frontends/athena_pp/data_structures.py
, wherebc[i]
is an array with no shape. I'm using yt-dev but I was able to reproduce the problem in yt 3.4.0.Code for reproduction
To reproduce, just generate the initial date for the Fishbone Moncrief Torus as described here in the Athena++ tutorial. File has been curldropped here.
Then try to read it in with the following code (I used python2, but should be the same for python3):
Actual outcome
The result is the following traceback.
Expected outcome
What should happen is that the code should load the dataset completely and I should get a plot.
I've traced the problem to an interaction with some lines above. The
bc
object is constructed above withmeaning the
bc
object contains some arrays with no shape... i.e.,len(bc[i].shape) == 0
. This causes a problem in the loop below which contains multiple calls tobc[i][j]
for variousi
andj
.I can make the code run to completion by adding the following lines in the loop that accesses
bc[i][j]
, but I worry that this is causing yt to read in incomplete data.I was hoping John, or whomever is currently caring for the Athena++ frontend could take a look at this.
Thanks!
Version Information
I installed yt via git.
The text was updated successfully, but these errors were encountered: