Browse Source

class PolygonalCircuit is now public

Fabian Peter Hammerle 5 years ago
parent
commit
883eb7e7de
2 changed files with 1 additions and 16 deletions
  1. 1 1
      freesurfer_surface/__init__.py
  2. 0 15
      tests/test_polygonal_circuit.py

+ 1 - 1
freesurfer_surface/__init__.py

@@ -110,7 +110,7 @@ class PolygonalCircuit:
     def vertex_indices(self):
         return self._vertex_indices
 
-    def _normalize(self) -> '_PolygonalCircuit':
+    def _normalize(self) -> 'PolygonalCircuit':
         vertex_indices = collections.deque(self.vertex_indices)
         vertex_indices.rotate(-numpy.argmin(self.vertex_indices))
         if len(vertex_indices) > 2 and vertex_indices[-1] < vertex_indices[1]:

+ 0 - 15
tests/test_polygonal_circuit.py

@@ -18,21 +18,6 @@ def test_init_iterator():
     assert circuit.vertex_indices == (1, 2, 3, 5)
 
 
-def test_init_tuple():
-    circuit = _PolygonalCircuit((1, 2, 3, 5))
-    assert circuit.vertex_indices == (1, 2, 3, 5)
-
-
-def test_init_list():
-    circuit = _PolygonalCircuit([1, 2, 3, 5])
-    assert circuit.vertex_indices == (1, 2, 3, 5)
-
-
-def test_init_iterator():
-    circuit = _PolygonalCircuit(iter([1, 2, 3, 5]))
-    assert circuit.vertex_indices == (1, 2, 3, 5)
-
-
 @pytest.mark.parametrize(('source_vertex_indices', 'expected_vertex_indices'), [
     ((1,), (1,)),
     ((1, 2), (1, 2)),