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
File "/home/joel/repos/weather-model-graphs/src/weather_model_graphs/create/mesh/kinds/flat.py", line 65, in create_flat_multiscale_mesh_graph
.reshape((num_nodes_x, num_nodes_y, 2))[
ValueError: cannot reshape array of size 162 into shape (26,26,2)
which modify the graph G_all_levels[lev], which is what is used in the next iteration of the loop. It could be that this graph is being overwritten before it is used.
I encountered this when working on #32, but since this is an orthogonal issue I will not fix it in there.
The text was updated successfully, but these errors were encountered:
There seems to be a bug in
weather-model-graphs/src/weather_model_graphs/create/mesh/kinds/flat.py
Line 8 in 2456064
that causes a crash whenever you try to create a multiscale graph by collapsing >= 3 levels of flat graphs.
Minimum example to reproduce
This gives output
but then crashes with
Problem
The issue seems to relate to the loop
weather-model-graphs/src/weather_model_graphs/create/mesh/kinds/flat.py
Lines 58 to 76 in 2456064
where the variables
num_nodes_x
andnum_nodes_y
are not set correctly on the second iteration. I am a bit suspicious of the linesweather-model-graphs/src/weather_model_graphs/create/mesh/kinds/flat.py
Lines 73 to 75 in 2456064
which modify the graph
G_all_levels[lev]
, which is what is used in the next iteration of the loop. It could be that this graph is being overwritten before it is used.I encountered this when working on #32, but since this is an orthogonal issue I will not fix it in there.
The text was updated successfully, but these errors were encountered: