Skip to content

Commit 0fcab38

Browse files
authored
Merge pull request #40 from KVSlab/release-v0.3-and-refactor
Release v0.3 and minor refactoring
2 parents f0e8f66 + 82809a2 commit 0fcab38

19 files changed

+66
-71
lines changed

demo/demo_manipulate_area_inflation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# --method area --percentage -20 --region-of-interest first_line --poly-ball-size 250 250 250
1212
# $ morphman-area --ifile C0002/surface/model.vtp --ofile C0002/surface/area_inflated.vtp \
1313
# --method area --percentage 20 --region-of-interest first_line --poly-ball-size 250 250 250
14-
14+
#
1515
# and a more detailed explenation could be found here:
1616
# https://morphman.readthedocs.io/en/latest/manipulate_area.html#inflation-deflation-of-an-arterial-segment
1717

demo/get_test_data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@
1212
def download_case(case):
1313
abs_path = path.dirname(path.abspath(__file__))
1414
output_file = path.join(abs_path, "{}_models.tar.gz".format(case))
15-
adress = "http://ecm2.mathcs.emory.edu/aneuriskdata/download/{}/{}_models.tar.gz".format(case, case)
15+
url = "http://ecm2.mathcs.emory.edu/aneuriskdata/download/{}/{}_models.tar.gz".format(case, case)
1616

1717
try:
1818
if platform == "darwin":
19-
system("curl {} --output {}".format(adress, output_file))
19+
system("curl {} --output {}".format(url, output_file))
2020
system("tar -zxvf {}".format(output_file))
2121
system("rm {}".format(output_file))
2222

2323
elif platform == "linux" or platform == "linux2":
24-
system("wget {}".format(adress))
24+
system("wget {}".format(url))
2525
system("tar -zxvf {}".format(output_file))
2626
system("rm {}".format(output_file))
2727

2828
elif platform == "win32":
29-
system("bitsadmin /transfer download_model /download /priority high {} {}".format(adress, output_file))
29+
system("bitsadmin /transfer download_model /download /priority high {} {}".format(url, output_file))
3030
system("tar -zxvf {}".format(output_file))
3131
system("del /f {}".format(output_file))
3232

3333
except:
3434
raise RuntimeError("Problem downloading the testdata, please do it manually from "
35-
+ adress + " and extract the compressed tarball in the"
35+
+ url + " and extract the compressed tarball in the"
3636
+ " test folder")
3737

3838

docs/source/Miscellaneous.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ For a more detailed description of the method, please see [3]_.
8282

8383
Common
8484
======
85-
In ``common.py`` we have collected generic functions used by multiple scripts.
86-
Many of the functions wrap existing vtk and vmtk functions in a more pythonic syntax.
85+
In the folder ``common`` we have collected utility scripts containing generic functions used by multiple scripts.
86+
Many of the functions wrap existing vtk and vmtk functions in a more pythonic syntax,
87+
collected in ``vtk_wrapper.py`` and ``vmtk_wrapper.py``, respectively.
8788
Instead of writing 6-7 lines of code to initiate a vtk-object, and set each parameter,
88-
and the input surface, one can call one function with multiple arguments instead,
89-
see for instance :meth:`common.threshold`.
89+
and the input surface, one may call one function with multiple arguments instead,
90+
see for instance :meth:`vtk_wrapper.vtk_compute_threshold`.
9091

9192
In addition to wrapping vtk and vmtk functionality, there is also new methods for
92-
manipulating centerlines and Voronoi diagrams.
93+
manipulating centerlines, surface models and Voronoi diagrams, collected in their respective scripts.
9394

9495
.. [1] Piccinelli, M., Bacigaluppi, S., Boccardi, E., Ene-Iordache, B., Remuzzi, A., Veneziani, A. and Antiga, L., 2011. Geometry of the internal carotid artery and recurrent patterns in location, orientation, and rupture status of lateral aneurysms: an image-based computational study. Neurosurgery, 68(5), pp.1270-1285.
9596
.. [2] Bogunović, H., Pozo, J.M., Cárdenes, R., Villa-Uriol, M.C., Blanc, R., Piotin, M. and Frangi, A.F., 2012. Automated landmarking and geometric characterization of the carotid siphon. Medical image analysis, 16(4), pp.889-903.

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
# built documents.
6767
#
6868
# The short X.Y version.
69-
version = u'0.2'
69+
version = u'0.3'
7070
# The full version, including alpha/beta/rc tags.
71-
release = u'0.2'
71+
release = u'0.3'
7272

7373
# The language for content autogenerated by Sphinx. Refer to documentation
7474
# for a list of supported languages.

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The general dependencies of morphMan are
2121
Basic Installation
2222
==================
2323
We recommend that you can install morphMan through Anaconda.
24-
First, install Anaconda or Miniconda (preferably the python 3.6 version).
24+
First, install Anaconda or Miniconda (preferably the Python 3.6 version).
2525
Then execute the following command in a terminal window::
2626

2727
$ conda create -n your_environment -c vmtk -c morphman morphman

docs/source/manipulate_area.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Tutorial: Manipulate area
99
Manipulation of the cross-sectional area is performed by running ``morphman-area`` in the terminal, followed by the
1010
respective command line arguments. Alternatively, you can execute the Python script directly,
1111
located in the ``morphman`` subfolder, by typing ``python manipulate_area.py``. We have also created a
12-
demo folder where we show how to run this tutorial from a Python script, please checkout the code from GitHub to
12+
demo folder where we show how to run this tutorial from a Python script, please check out the code from GitHub to
1313
run the demos.
1414

1515
In this tutorial, we are using the model with

docs/source/manipulate_bend.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The goal of ``morphman-bend``, is to alter one specific bend in the
1010
vasculature, like shown in Figure 1. This can be performed by running ``morphman-bend`` in the terminal,
1111
followed by the respective command line arguments. Alternatively, you can execute the Python script directly,
1212
located in the ``morphman`` subfolder, by typing ``python manipulate_bend.py``. We have also created a
13-
demo folder where we show how to run this tutorial from a Python script, please checkout the code from GitHub to
13+
demo folder where we show how to run this tutorial from a Python script, please check out the code from GitHub to
1414
run the demos.
1515

1616
.. figure:: Bend_moving.png

docs/source/manipulate_bifurcation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ is a file `./C0005/surface/model.vtp`, relative to where you execute the command
2424
Performing the manipulation can be achieved by running ``morphman-bifurcation`` in the terminal, followed by the
2525
respective command line arguments. Alternatively, you can execute the Python script directly,
2626
located in the ``morphman`` subfolder, by typing ``python manipulate_bifurcation.py``. We have also created a
27-
demo folder where we show how to run this tutorial from a Python script, please checkout the code from GitHub to
27+
demo folder where we show how to run this tutorial from a Python script, please check out the code from GitHub to
2828
run the demos.
2929

3030
Shown in Figure 2 is the result of rotating the two daughter branches with both

docs/source/manipulate_branch.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Tutorial: Manipulate branch
77
===========================
88

99
The goal of ``manipulate_branch.py`` is to manipulate a specific branch of a
10-
vascular model, either through pure tranlation and rotation, or by completely removing it, as depicted in Figure 1.
10+
vascular model, either through pure tranlsation and rotation, or by completely removing it, as depicted in Figure 1.
1111
In particular, we have defined a branch as any branch branching out of the longest tubular structure,
1212
defined by the physical length of the tube.
1313
The manipulation can be achieved by running ``morphman-branch`` in the terminal, followed by the
1414
respective command line arguments. Alternatively, you can execute the Python script directly,
1515
located in the ``morphman`` subfolder, by typing ``python manipulate_branch.py``. We have also created a
16-
demo folder where we show how to run this tutorial from a Python script, please checkout the code from GitHub to
16+
demo folder where we show how to run this tutorial from a Python script, please check out the code from GitHub to
1717
run the demos.
1818

1919
.. figure:: Branch.png

docs/source/manipulate_curvature.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ total curvature/torsion in a vascular segment, see Figure 1 for an example.
1111
The manipulation can be achieved by running ``morphman-curvature`` in the terminal, followed by the
1212
respective command line arguments. Alternatively, you can execute the Python script directly,
1313
located in the ``morphman`` subfolder, by typing ``python manipulate_curvature.py``. We have also created a
14-
demo folder where we show how to run this tutorial from a Python script, please checkout the code from GitHub to
14+
demo folder where we show how to run this tutorial from a Python script, please check out the code from GitHub to
1515
run the demos.
1616

1717
.. figure:: Curvature.png

0 commit comments

Comments
 (0)