Skip to content

Commit

Permalink
Showing group creation in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Jan 16, 2024
1 parent a2939e6 commit 5dae287
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ v1 = fuel_group.get_volumes()[1]

print(v1)

new_group = dagmc.Group.create(model, "my_new_group")
new_group.id
new_group = dagmc.Group.create(model, name="my_new_group", group_id=10)
print(new_group)

```
Output:
Expand All @@ -52,6 +52,8 @@ Volume IDs:
}

Volume 1, 4092 triangles

Group 10, Name: my_new_group
```

Code:
Expand Down

0 comments on commit 5dae287

Please sign in to comment.