Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
adding molecule docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed Apr 19, 2024
1 parent 02a1801 commit 5b646af
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion mess/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,19 @@ def _repr_html_(self):
return v._repr_html_()


def molecule(name: str):
def molecule(name: str) -> Structure:
"""Builds a few sample molecules
Args:
name (str): either "h2" or "water". More to be added.
Raises:
NotImplementedError: _description_
Returns:
Structure: the built molecule as a Structure object
"""

name = name.lower()

if name == "h2":
Expand Down

0 comments on commit 5b646af

Please sign in to comment.