From 68ebacba0255f6c5f77659570c39a7b4f45cc8f8 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Tue, 24 Sep 2024 08:56:45 +0200 Subject: [PATCH] Fixed bug in example code --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6bead5..af27058 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,10 @@ import weather_model_graphs as wmg # define your (x,y) grid coodinates xy_grid = np.meshgrid(np.linspace(0, 1, 32), np.linspace(0, 1, 32), indexing='ij') +xy_grid = np.stack(xy_grid, axis=0) # create the full graph -graph = wmg.create.archetype.create_keisler_graph(xy=xy_grid) +graph = wmg.create.archetype.create_keisler_graph(xy_grid=xy_grid) # split the graph by component graph_components = wmg.split_graph_by_edge_attribute(graph=graph, attr='component')