andreped commited on
Commit
ac935be
1 Parent(s): 80148aa

testing proper CLI pip installable option

Browse files
Files changed (3) hide show
  1. livermask/__init__.py +1 -0
  2. livermask/livermask.py +1 -7
  3. 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 fh:
4
- long_description = fh.read()
5
 
6
  setuptools.setup(
7
  name='livermask',
8
- version='0.1',
9
  author="Andre Pedersen",
10
- author_email="andre.pedersen@sintef.no",
 
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",