Skip to content

Commit

Permalink
Fixed bug in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Larsson committed Sep 24, 2024
1 parent 6406833 commit 68ebacb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 68ebacb

Please sign in to comment.