Skip to content

Commit

Permalink
Issue #163: Linting and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tdowrick committed Jan 14, 2021
1 parent 47353a6 commit d07acc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/module_ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ Surface Models
:undoc-members:
:show-inheritance:

Unstructured Grid Model
^^^^^^^^^^^^^^^^^^^^^^^
.. automodule:: sksurgeryvtk.models.vtk_grid_model
:members:
:undoc-members:
:show-inheritance:
Image Model
^^^^^^^^^^^
.. automodule:: sksurgeryvtk.models.vtk_image_model
Expand Down
4 changes: 2 additions & 2 deletions tests/models/test_vtk_unstructured_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
def test_load_from_vtu():

model = "tests/data/models/unstructured_grid.vtu"
neonate_model = GM.vtkUnstructuredGridModel(model)
neonate_model = GM.VTKUnstructuredGridModel(model)

array_min, array_max = neonate_model.get_cell_array_bounds()
neonate_model.threshold_between(array_min, array_max)

def test_load_from_vtk():

model = "tests/data/models/unstructured_grid.vtk"
neonate_model = GM.vtkUnstructuredGridModel(model)
neonate_model = GM.VTKUnstructuredGridModel(model)

array_min, array_max = neonate_model.get_cell_array_bounds()
neonate_model.threshold_between(array_min, array_max)
Expand Down

0 comments on commit d07acc2

Please sign in to comment.