Skip to content

Commit

Permalink
WIP- Remove layered_dihedral property
Browse files Browse the repository at this point in the history
  • Loading branch information
umesh-timalsina committed Jul 27, 2021
1 parent da62893 commit fa751fa
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions gmso/core/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ def __init__(self, name="Topology", box=None):
self._bonds = IndexedSet()
self._angles = IndexedSet()
self._dihedrals = IndexedSet()
self._layered_dihedrals = IndexedSet()
self._impropers = IndexedSet()
self._layered_impropers = IndexedSet()
self._subtops = IndexedSet()
self._atom_types = {}
self._atom_types_idx = {}
Expand Down Expand Up @@ -344,20 +342,11 @@ def dihedrals(self):
"""Return all dihedrals in the topology."""
return tuple(self._dihedrals)

@property
def layered_dihedrals(self):
return tuple(self._layered_dihedrals)

@property
def impropers(self):
"""Return all impropers in the topology."""
return tuple(self._impropers)

@property
def layered_impropers(self):
"""Return all layered impropers in the topology."""
return tuple(self._layered_impropers)

@property
def atom_types(self):
"""Return all atom_types in the topology."""
Expand Down Expand Up @@ -529,16 +518,10 @@ def add_connection(self, connection, update_types=True):
self._bonds.add(connection)
if isinstance(connection, Angle):
self._angles.add(connection)
if isinstance(connection, Dihedral):
self._dihedrals.add(connection)
if isinstance(connection, LayeredDihedral):
if isinstance(connection, BaseDihedral):
self._dihedrals.add(connection)
self._layered_dihedrals.add(connection)
if isinstance(connection, Improper):
self._impropers.add(connection)
if isinstance(connection, LayeredImproper):
if isinstance(connection, BaseImproper):
self._impropers.add(connection)
self._layered_impropers.add(connection)
if update_types:
self.update_connection_types()

Expand Down

0 comments on commit fa751fa

Please sign in to comment.