Skip to content

Commit 0ee0538

Browse files
committed
Update installation
1 parent d57ec8d commit 0ee0538

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

docs/source/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.. title:: Installation
2-
.. highlight:: console
32

43
============
54
Installation
65
============
6+
.. highlight:: console
77

88
morphMan (morphological manipulation) is a collection of scripts to objectively manipulate
99
morphological features of patient-specific vascular geometries. The project is accessible through
10-
`GitHub <https://github.com/KVSlab/morphMan/>`_ and `Anaconda.org <https://anaconda.org/morphman/morphman>`_.
10+
`GitHub <https://github.com/KVSlab/morphMan/>`_ and `Anaconda <https://anaconda.org/morphman/morphman>`_.
1111

1212

1313
Compatibility and Dependencies
@@ -31,7 +31,7 @@ Then execute the following command in a terminal window to create a Conda enviro
3131
.. note::
3232
Replace ``your_environment`` with the environment name.
3333

34-
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``.
3535
Now you are all set, and can start using morphMan. morphMan can be accessed by opening a Python console
3636
and typing::
3737

test/fixtures.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
from morphman.common import get_inlet_and_outlet_centers, get_path_names, compute_centerlines, prepare_surface
1414

1515

16-
def download_testdata(test_path, outputfile):
16+
def download_testdata(test_path, output_file):
1717
if platform == "darwin":
18-
system("curl -L {} --output {}".format(test_path, outputfile))
18+
system("curl -L {} --output {}".format(test_path, output_file))
1919
elif platform == "linux" or platform == "linux2":
20-
system("wget -O {} {}".format(outputfile, test_path))
20+
system("wget -O {} {}".format(output_file, test_path))
2121
elif platform == "win32":
22-
system("bitsadmin /transfer download_model /download /priority high {} {}".format(test_path, outputfile))
22+
system("bitsadmin /transfer download_model /download /priority high {} {}".format(test_path, output_file))
2323

2424

2525
@pytest.fixture(scope="module")
@@ -29,15 +29,16 @@ def surface_paths():
2929
# Path to test data
3030
# TODO: Replace with official Aneurisk database when available
3131
test_path = "https://github.com/hkjeldsberg/AneuriskDatabase/raw/master/models/C0001/surface/model.vtp"
32-
outputfile = path.join(abs_path, "C0001", "surface", "model.vtp")
32+
output_file = path.join(abs_path, "C0001", "surface", "model.vtp")
3333

34-
# Download test data if necessary
34+
# Create test data folders
3535
if not path.exists(path.join(abs_path, "C0001", "surface")):
3636
makedirs(path.join(abs_path, "C0001", "surface"))
3737

38+
# Download test data if necessary
3839
if not path.exists(path.join(abs_path, "C0001", "surface", "model.vtp")):
3940
try:
40-
download_testdata(test_path, outputfile)
41+
download_testdata(test_path, output_file)
4142
except Exception:
4243
raise Exception("Problem downloading the testdata, please do it manually from "
4344
+ test_path + " and extract the compressed tarball in the test folder")

0 commit comments

Comments
 (0)