class TopologyView(Topology):
def __init(self, other: Topology):
# Have self.positions be a REFERENCE to the real positions
self.positions = other.positions
...
def add_molecule(*args, **kwargs):
return NotImplementedError
def add_constraint():
return NotImplementedError
class Interchange:
@property
def topology():
return TopologyView(self._topology)
|