Skip to content

Commit 9e40713

Browse files
mjohnson541rwest
authored andcommitted
add coordination number and lone-pair regularization dimension tracking
1 parent d774274 commit 9e40713

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

rmgpy/molecule/group.pxd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ cdef class GroupAtom(Vertex):
5353
cdef public list reg_dim_r
5454
cdef public list reg_dim_site
5555
cdef public list reg_dim_morphology
56+
cdef public list reg_dim_ncoord
57+
cdef public list reg_dim_p
5658

5759
cpdef Vertex copy(self)
5860

rmgpy/molecule/group.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ class GroupAtom(Vertex):
155155
`reg_dim_r` ``list`` List of inRing values that are free dimensions in tree optimization
156156
`reg_dim_site` ``list`` List of sites that are free dimensions in tree optimization
157157
`reg_dim_morphology` ``list`` List of morphologies that are free dimensions in tree optimization
158+
`reg_dim_ncoord` ``list`` List of coordination numbers that are free dimensions in tree optimization
159+
`reg_dim_p` ``list`` List of numbers of electron pairs that are free dimensions in tree optimization
158160
==================== =================== ====================================
159161
160162
Each list represents a logical OR construct, i.e. an atom will match the
@@ -184,6 +186,8 @@ def __init__(self, atomtype=None, radical_electrons=None, charge=None, label='',
184186
self.reg_dim_r = [[], []]
185187
self.reg_dim_site = [[], []]
186188
self.reg_dim_morphology = [[], []]
189+
self.reg_dim_ncoord = [[],[]]
190+
self.reg_dim_p = [[],[]]
187191

188192
def __reduce__(self):
189193
"""
@@ -1561,6 +1565,8 @@ def clear_reg_dims(self):
15611565
atm.reg_dim_r = [[], []]
15621566
atm.reg_dim_site = [[],[]]
15631567
atm.reg_dim_morphology = [[],[]]
1568+
atm.reg_dim_ncoord = [[],[]]
1569+
atm.reg_dim_p = [[],[]]
15641570
for bd in self.get_all_edges():
15651571
bd.reg_dim = [[], []]
15661572

0 commit comments

Comments
 (0)