Skip to content

Commit

Permalink
Update uses of gsd API for all hoomd examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz committed Jul 12, 2023
1 parent db21c90 commit 63387ef
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/hoomd-blue/harmonic_bias/Harmonic_Bias.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"snap = get_snap(system)\n",
"snap = post_process_pos(snap)\n",
"snap.particles.validate()\n",
"with gsd.hoomd.open(\"harmonic_start.gsd\", \"wb\") as f:\n",
"with gsd.hoomd.open(\"harmonic_start.gsd\", \"w\") as f:\n",
" f.append(snap)\n"
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd-blue/harmonic_bias/Harmonic_Bias.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ system = System()
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("harmonic_start.gsd", "wb") as f:
with gsd.hoomd.open("harmonic_start.gsd", "w") as f:
f.append(snap)

```
Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd-blue/harmonic_bias/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd-blue/string/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"snap = get_snap(system)\n",
"snap = post_process_pos(snap)\n",
"snap.particles.validate()\n",
"with gsd.hoomd.open(\"start.gsd\", \"wb\") as f:\n",
"with gsd.hoomd.open(\"start.gsd\", \"w\") as f:\n",
" f.append(snap)\n"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ system = System()
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)

```
Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd-blue/umbrella_integration/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd-blue/unbiased/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd3/harmonic_bias/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd3/string/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd3/umbrella_integration/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down
2 changes: 1 addition & 1 deletion examples/hoomd3/unbiased/gen_gsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main(argv):
snap = get_snap(system)
snap = post_process_pos(snap)
snap.particles.validate()
with gsd.hoomd.open("start.gsd", "wb") as f:
with gsd.hoomd.open("start.gsd", "w") as f:
f.append(snap)


Expand Down

0 comments on commit 63387ef

Please sign in to comment.