testing proper CLI pip installable option
Browse files- livermask/__init__.py +1 -0
- livermask/livermask.py +1 -7
- setup.py +5 -4
livermask/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
livermask/livermask.py
CHANGED
|
@@ -12,6 +12,7 @@ from skimage.measure import label, regionprops
|
|
| 12 |
import warnings
|
| 13 |
warnings.filterwarnings('ignore', '.*output shape of zoom.*')
|
| 14 |
|
|
|
|
| 15 |
def intensity_normalization(volume, intensity_clipping_range):
|
| 16 |
result = np.copy(volume)
|
| 17 |
|
|
@@ -38,11 +39,7 @@ def func(path, output):
|
|
| 38 |
|
| 39 |
cwd = "/".join(os.path.realpath(__file__).replace("\\", "/").split("/")[:-1]) + "/"
|
| 40 |
|
| 41 |
-
#print(cwd)
|
| 42 |
-
#print(" :) ")
|
| 43 |
-
|
| 44 |
name = cwd + "model.h5"
|
| 45 |
-
#name = "\.model.h5"
|
| 46 |
|
| 47 |
# get model
|
| 48 |
get_model()
|
|
@@ -122,11 +119,8 @@ def func(path, output):
|
|
| 122 |
def main():
|
| 123 |
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|
| 124 |
|
| 125 |
-
#__os.path
|
| 126 |
-
|
| 127 |
path = sys.argv[1]
|
| 128 |
output = sys.argv[2]
|
| 129 |
-
#output = sys.argv[3]
|
| 130 |
|
| 131 |
func(path, output)
|
| 132 |
|
|
|
|
| 12 |
import warnings
|
| 13 |
warnings.filterwarnings('ignore', '.*output shape of zoom.*')
|
| 14 |
|
| 15 |
+
|
| 16 |
def intensity_normalization(volume, intensity_clipping_range):
|
| 17 |
result = np.copy(volume)
|
| 18 |
|
|
|
|
| 39 |
|
| 40 |
cwd = "/".join(os.path.realpath(__file__).replace("\\", "/").split("/")[:-1]) + "/"
|
| 41 |
|
|
|
|
|
|
|
|
|
|
| 42 |
name = cwd + "model.h5"
|
|
|
|
| 43 |
|
| 44 |
# get model
|
| 45 |
get_model()
|
|
|
|
| 119 |
def main():
|
| 120 |
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|
| 121 |
|
|
|
|
|
|
|
| 122 |
path = sys.argv[1]
|
| 123 |
output = sys.argv[2]
|
|
|
|
| 124 |
|
| 125 |
func(path, output)
|
| 126 |
|
setup.py
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
import setuptools
|
| 2 |
|
| 3 |
-
with open("README.md", "r") as
|
| 4 |
-
long_description =
|
| 5 |
|
| 6 |
setuptools.setup(
|
| 7 |
name='livermask',
|
| 8 |
-
version='0.
|
| 9 |
author="Andre Pedersen",
|
| 10 |
-
author_email="
|
|
|
|
| 11 |
description="A package for automatic segmentation of liver from CT data",
|
| 12 |
long_description=long_description,
|
| 13 |
long_description_content_type="text/markdown",
|
|
|
|
| 1 |
import setuptools
|
| 2 |
|
| 3 |
+
with open("README.md", "r", encoding='utf-16') as f:
|
| 4 |
+
long_description = f.read()
|
| 5 |
|
| 6 |
setuptools.setup(
|
| 7 |
name='livermask',
|
| 8 |
+
version='1.0.0',
|
| 9 |
author="Andre Pedersen",
|
| 10 |
+
author_email="andrped94@gmail.com",
|
| 11 |
+
license='MIT',
|
| 12 |
description="A package for automatic segmentation of liver from CT data",
|
| 13 |
long_description=long_description,
|
| 14 |
long_description_content_type="text/markdown",
|