Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.16.2
rev: v0.16.6
hooks:
# Run the linter.
- id: ruff
Expand All @@ -26,7 +26,7 @@ repos:
exclude: 'setup.cfg|gmso/tests/files/.*'

- repo: https://github.com/pycqa/isort
rev: 9.0.0b2
rev: 9.0.1
hooks:
- id: isort
name: isort (python)
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ from mbuild.lib.molecules import Ethane
from gmso.external.convert_mbuild import from_mbuild
from gmso.parameterization import apply
from gmso.formats.lammpsdata import write_lammpsdata

# Start with a mBuild compound
mb_ethane = Ethane()
oplsaa = ffutils.FoyerFFs().load('oplsaa').to_gmso_ff()
oplsaa = ffutils.FoyerFFs().load("oplsaa").to_gmso_ff()
# atomtype the system with foyer, and convert the resulting structure to a topology
gmso_ethane = from_mbuild(mb_ethane)
apply(top=gmso_ethane,
forcefields=oplsaa,
identify_connections=True)
apply(top=gmso_ethane, forcefields=oplsaa, identify_connections=True)
# Write out lammps datafile
write_lammpsdata(gmso_ethane, filename='ethane.lammps', atom_style='full')
write_lammpsdata(gmso_ethane, filename="ethane.lammps", atom_style="full")
```

Introduction
Expand Down
Loading