You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .circleci/config.yml
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ workflows:
7
7
jobs:
8
8
install-and-test:
9
9
docker:
10
-
- image: cimg/python:3.6
10
+
- image: cimg/python:3.10
11
11
working_directory: ~/repo
12
12
steps:
13
13
- checkout
@@ -27,11 +27,11 @@ jobs:
27
27
# Set conda parameters
28
28
conda config --set restore_free_channel true
29
29
conda config --set always_yes yes --set changeps1 no
30
-
conda config --add channels vmtk
30
+
conda config --add channels conda-forge
31
31
conda config --add channels morphman
32
32
33
33
# Set up environment
34
-
conda create -n morphman morphman pytest llvm=3.3
34
+
conda create -n morphman morphman
35
35
36
36
# Activate environment
37
37
source activate morphman
@@ -42,11 +42,6 @@ jobs:
42
42
# Dependencies for code coverage
43
43
pip install pytest-cov codecov
44
44
45
-
# Edit VMTK files
46
-
sed -i -e 's/len(self.SourcePoints)\/3/len\(self.SourcePoints\)\/\/3/g' $HOME/miniconda/envs/morphman/lib/python3.6/site-packages/vmtk/vmtkcenterlines.py
47
-
sed -i -e 's/len(self.TargetPoints)\/3/len\(self.TargetPoints\)\/\/3/g' $HOME/miniconda/envs/morphman/lib/python3.6/site-packages/vmtk/vmtkcenterlines.py
48
-
sed -i -e 's/(len(values) - 1)\/2/\(len\(values\) - 1\)\/\/2/g' $HOME/miniconda/envs/morphman/lib/python3.6/site-packages/vmtk/vmtksurfacecurvature.py
Copy file name to clipboardExpand all lines: docs/source/Miscellaneous.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ the geometric properties (curvature and torsion) of the centerline, set with
38
38
2. Discrete derivatives (``disc``)
39
39
3. VMTK (``vmtk``)
40
40
41
-
To perform landmarking, we will be using the model with `ID C0001 <http://ecm2.mathcs.emory.edu/aneuriskdata/download/C0001/C0001_models.tar.gz>`_
41
+
To perform landmarking, we will be using the model with `ID C0001 <https://github.com/hkjeldsberg/AneuriskDatabase/tree/master/models/C0001>`_
42
42
from the Aneurisk database. For the commands below we assume that there is a file `./C0001/surface/model.vtp`, relative to where you execute the command.
43
43
To landmark the surface model, run the following command::
44
44
@@ -71,7 +71,7 @@ manipulates only the centerline for a range of ``--alpha`` and
71
71
``--beta`` values. The resulting 2D data can be fitted to a surface through cubic spline interpolation, from
72
72
which one can easily collect appropriate values for ``--alpha`` and ``--beta``.
73
73
74
-
To estimate :math:`\alpha` and :math:`\beta`, we will be using the model with `ID C0005 <http://ecm2.mathcs.emory.edu/aneuriskdata/download/C0005/C0005_models.tar.gz>`_
74
+
To estimate :math:`\alpha` and :math:`\beta`, we will be using the model with `ID C0005 <https://github.com/hkjeldsberg/AneuriskDatabase/tree/master/models/C0005>`_
75
75
from the Aneurisk database. For the commands below we assume that there is a file `./C0005/surface/model.vtp`, relative to where you execute the command.
76
76
77
77
Imagine we are interested in changing the bend angle by :math:`\pm10^{\circ}`.
Replace ``your_environment`` with the environment name.
28
33
29
-
You can then activate your environment by running ``source activate your_environment``.
34
+
You can then activate your environment by running ``conda activate your_environment`` or ``source activate your_environment``.
30
35
Now you are all set, and can start using morphMan. morphMan can be accessed by opening a Python console
31
36
and typing::
32
37
@@ -39,53 +44,32 @@ Alternatively you can use one of the six main methods of manipulation directly t
39
44
40
45
followed by the command line arguments for the selected method. A detailed explanation for usage of morphMan is described in :ref:`getting_started`.
41
46
42
-
.. WARNING:: The VMTK version 1.4, the one currently distributed with Anaconda, has a Python3 bug in `vmtkcenterlines` and `vmtksurfacecurvature`. As a workaround you have to change these files. To find out where it is located please execute::
Now copy the path up until ``[your_environment]`` and add ``lib/python3.6/site-packages/vmtk/vmtkcenterlines.py``. Please change the path separation symbol to match your operating system and change ``python3.6`` to the python version you are using. If you are using Miniconda, replace `anaconda3` with `miniconda3`. Using this path you can run the two following lines::
50
-
51
-
$ sed -i -e 's/len(self.SourcePoints)\/3/len\(self.SourcePoints\)\/\/3/g' /Users/[Name]/anaconda3/envs/[your_environment]/lib/python3.6/site-packages/vmtk/vmtkcenterlines.py
52
-
$ sed -i -e 's/len(self.TargetPoints)\/3/len\(self.TargetPoints\)\/\/3/g' /Users/[Name]/anaconda3/envs/[your_environment]/lib/python3.6/site-packages/vmtk/vmtkcenterlines.py
53
-
54
-
Similarly, for `vmtksurfacecurvature.py`, run the following command::
55
-
56
-
$ sed -i -e 's/(len(values) - 1)\/2/\(len\(values\) - 1\)\/\/2/g' /Users/[Name]/anaconda3/envs/[your_environment]/lib/python3.6/site-packages/vmtk/vmtksurfacecurvature.py
57
-
58
-
59
-
.. WARNING:: Some users may experience the following Python compatibility issue::
60
-
61
-
ModuleNotFoundError: No module named 'vtkRenderingOpenGL2Python'
62
-
63
-
To fix this issue, a temporary solution is the install the ``llvm`` library directly in the virtual environment, using the following commands::
64
-
65
-
$ conda config --set restore_free_channel true
66
-
$ conda install llvm=3.3
67
-
68
47
Development version
69
48
===================
70
49
71
50
Downloading
72
51
~~~~~~~~~~~
73
52
The latest development version of morphMan can be found on the official
74
53
`morphMan git repository <https://github.com/KVSlab/morphMan>`_ on GitHub.
75
-
Make sure Git (>=1.6) is installed, which is needed to clone the repository.
54
+
Make sure `Git <https://git-scm.com/>`_ is installed, which is needed to clone the repository.
76
55
To clone the morphMan repository, navigate to the directory where you wish
77
56
morphMan to be stored, type the following command, and press Enter::
78
57
79
-
$ git clone https://github.com/KVSlab/morphMan
58
+
$ git clone https://github.com/KVSlab/morphMan
80
59
60
+
If it not already present, this will install Python for you.
81
61
After the source distribution has been downloaded, all the files required will be located
82
62
in the newly created ``morphMan`` folder.
83
63
84
64
Building
85
65
~~~~~~~~
86
66
In order to build and install morphMan, navigate into the ``morphMan`` folder, where a ``setup.py``
87
67
file will be located. First, make sure that all dependencies are installed. Then, building and installation of morphMan
88
-
can be performed by simply running the following command from the terminal window::
68
+
can be performed with ``pip`` by running the following command::
69
+
70
+
$ python -m pip install .
71
+
72
+
Alternatively, morphMan can be installed using Python directly (deprecated)::
0 commit comments