Skip to content

Commit e2f8633

Browse files
committed
starting docstring
1 parent 53a80d5 commit e2f8633

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

grits/finegrain.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,32 @@ def backmap_snapshot_to_compound(
2121
ref_distance=None,
2222
energy_minimize=False,
2323
):
24+
"""Backmap a fine-grained snapshot onto a coarse one.
25+
26+
Creates a fine-grained compound from a coarse one using the given parameters.
27+
28+
Parameters
29+
----------
30+
snapshot : one frame of gsd trajectory
31+
32+
bead_mapping (string) : SMILES string of fine-grain monomer
33+
34+
bond_head_index (list of int) : index of polymer reaction, choose head to orient chain
35+
36+
bond_tail_index (list of int) : index of polymer reaction, choose tail to orient chain
37+
38+
library_key (string) : string key to dictionary, reactant_dict, with known bead_mapping, bond_head_index, and bond_tail_index
39+
40+
ref_distance (float) : distance between monomers
41+
42+
energy_minimize (bool) : Option to run a mbuild energy minimization.
43+
44+
45+
Returns
46+
-------
47+
:py:class:`mbuild.Compound`
48+
The atomistic structure mapped onto the coarse-grained one.
49+
"""
2450
# TODO
2551
# assert all 3 dicts have the same keys
2652
if (

0 commit comments

Comments
 (0)