Skip to content

Commit

Permalink
remove grower; keep it in a different branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schwalbe-Koda committed Jul 15, 2020
1 parent 5b5bab8 commit acd2504
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 451 deletions.
1 change: 0 additions & 1 deletion moldocker/mcarlo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .base import MonteCarlo
from .mcmc import MarkovChainMC, Action
from .metropolis import Metropolis
from .grower import Grower

__all__ = []
44 changes: 0 additions & 44 deletions moldocker/mcarlo/grower.py

This file was deleted.

61 changes: 0 additions & 61 deletions moldocker/mcarlo/tests/test_grower.py

This file was deleted.

2 changes: 1 addition & 1 deletion moldocker/samplers/tests/test_voronoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class TestVoronoi(ut.TestCase):
def setUp(self):
self.host = load_structure()
self.guest = load_molecule()
self.sampler = VoronoiSampler()
self.sampler = VoronoiSampler(remove_species=["O"])

def test_points(self):
points = self.sampler.get_points(self.host)
Expand Down
1 change: 0 additions & 1 deletion moldocker/structure/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from .complex import Complex
from .molecule import MoleculeTransformer
from .fragment import FragmentCreator
59 changes: 0 additions & 59 deletions moldocker/structure/fragment.py

This file was deleted.

27 changes: 0 additions & 27 deletions moldocker/structure/tests/test_fragment.py

This file was deleted.

16 changes: 2 additions & 14 deletions moldocker/structure/tests/test_transformer.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import numpy as np
import unittest as ut

from moldocker.structure import MoleculeTransformer, FragmentCreator
from moldocker.structure import MoleculeTransformer
from moldocker.utils.geometry import rotation_matrix
from moldocker.tests.test_inputs import load_molecule, load_fragments
from moldocker.tests.test_inputs import load_molecule


class TestTransformer(ut.TestCase):
def setUp(self):
self.guest = load_molecule()
self.fragments = load_fragments()
self.transformer = MoleculeTransformer(self.guest.copy())
self.smallguest = load_molecule("ammonium.xyz")

Expand Down Expand Up @@ -74,17 +73,6 @@ def test_twist_small_molecule(self):
except ValueError:
self.fail("error while twisting the bond of a small molecule")

def test_substitute(self):
import networkx as nx

frag = self.fragments[3]
frag = FragmentCreator(frag).get_fragment()

self.transformer.substitute(frag)
coordination = nx.degree(self.transformer.molgraph.graph)

self.assertTrue(all([deg <= 4 for deg in dict(coordination).values()]))


if __name__ == "__main__":
ut.main()
Loading

0 comments on commit acd2504

Please sign in to comment.