@@ -23,41 +23,41 @@ def backmap_snapshot_to_compound(
23
23
):
24
24
"""Backmap a fine-grained snapshot onto a coarse one.
25
25
26
- Creates a fine-grained compound from a coarse one using the given parameters.
26
+ Creates a fine-grained compound from a coarse one using the given parameters.
27
27
28
- Parameters
29
- ----------
30
- snapshot : gsd.hoomd.Frame
31
- one frame of gsd trajectory
28
+ Parameters
29
+ ----------
30
+ snapshot : gsd.hoomd.Frame
31
+ one frame of gsd trajectory
32
32
33
- bead_mapping : string, default None
34
- SMILES string of fine-grain monomer
33
+ bead_mapping : string, default None
34
+ SMILES string of fine-grain monomer
35
35
36
- bond_head_index : list of int, default None
37
- index of polymer reaction, choose head to orient chain
36
+ bond_head_index : list of int, default None
37
+ index of polymer reaction, choose head to orient chain
38
38
39
- bond_tail_index : list of int, default None
40
- index of polymer reaction, choose tail to orient chain
39
+ bond_tail_index : list of int, default None
40
+ index of polymer reaction, choose tail to orient chain
41
41
42
- library_key : string, default None
43
- key to dictionary, reactant_dict, with known bead_mapping, bond_head_index, and bond_tail_index
42
+ library_key : string, default None
43
+ key to dictionary, reactant_dict, with known bead_mapping, bond_head_index, and bond_tail_index
44
44
45
- ref_distance : float, default None
46
- distance between monomers
45
+ ref_distance : float, default None
46
+ distance between monomers
47
47
48
- <<<<<<< HEAD
49
- energy_minimize (bool) : Option to run a mbuild energy minimization.
48
+ <<<<<<< HEAD
49
+ energy_minimize (bool) : Option to run a mbuild energy minimization.
50
50
51
- =======
52
- energy_minimize : bool, default False
53
- Option to run a mbuild energy minimization.
54
-
55
- >>>>>>> 2785a5d (updating format for doc strings)
51
+ =======
52
+ energy_minimize : bool, default False
53
+ Option to run a mbuild energy minimization.
56
54
57
- Returns
58
- -------
59
- :py:class:`mbuild.Compound`
60
- The atomistic structure mapped onto the coarse-grained one.
55
+ >>>>>>> 2785a5d (updating format for doc strings)
56
+
57
+ Returns
58
+ -------
59
+ :py:class:`mbuild.Compound`
60
+ The atomistic structure mapped onto the coarse-grained one.
61
61
"""
62
62
# TODO
63
63
# assert all 3 dicts have the same keys
@@ -98,7 +98,9 @@ def backmap_snapshot_to_compound(
98
98
for l , particle in enumerate (comp .particles ()):
99
99
if l == k :
100
100
remove_atoms .append (particle )
101
- if len (bond_head_index [mapping ]) > 1 : #repeated if statement if reacting group is listed for head index
101
+ if (
102
+ len (bond_head_index [mapping ]) > 1
103
+ ): # repeated if statement if reacting group is listed for head index
102
104
extra_head_particles = []
103
105
extra_head_particles = bond_head_index [mapping ][1 :]
104
106
for k in extra_head_particles :
0 commit comments