Skip to content

Commit

Permalink
Run black formatter on m3gnet
Browse files Browse the repository at this point in the history
  • Loading branch information
dormrod committed Mar 4, 2025
1 parent 3b2db28 commit 5671c98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion doc/source/examples/M3GNet/M3GNet.ipynb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Worked Example
Requirements
~~~~~~~~~~~~

The package m3net can be installed with the `package manager <../../../Installation/Optional_Components.html>`__.
The package m3net can be installed with ``amspackages``

Purpose
~~~~~~~
Expand All @@ -17,6 +17,7 @@ Initialization
.. code:: ipython3
from scm.plams import *
# this line is not required in AMS2025+
init()
Expand Down
1 change: 1 addition & 0 deletions examples/M3GNet/M3GNet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"outputs": [],
"source": [
"from scm.plams import *\n",
"\n",
"# this line is not required in AMS2025+\n",
"init()"
]
Expand Down
9 changes: 3 additions & 6 deletions examples/M3GNet/M3GNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
# coding: utf-8

# ## Requirements
#
#
# The package m3net can be installed with `amspackages`

# ## Purpose
#
#
# Use the M3GNet ML potential with AMS.

# ## Initialization

from scm.plams import *

# this line is not required in AMS2025+
init()

Expand Down Expand Up @@ -45,7 +46,3 @@

energy = job.results.get_energy(unit="eV")
print(f"M3GNet: final energy {energy:.3f} eV")




0 comments on commit 5671c98

Please sign in to comment.