pdnl-process 0.4__tar.gz → 0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pdnl_process
3
- Version: 0.4
3
+ Version: 0.5
4
4
  Summary: PDNL Process
5
5
  Project-URL: Homepage, https://github.com/PennCompPathology/pdnl_process
6
6
  Author-email: Noah Capp <noahmcapp@gmail.com>
@@ -62,12 +62,19 @@ def main():
62
62
  normalize_background=params.get('normalize_background', False),
63
63
  stain_vector=params.get('stain_vector', None)
64
64
  )
65
- hist = processor.dab.get_histogram(mask=processor.main_mask)
66
- if histogram is None:
67
- histogram = hist
68
- else:
69
- histogram = histogram + hist
70
- processor.dab.save(os.path.join(out_d, 'stain.npy'))
65
+ if args.staining_code == 'CV-DAB':
66
+ processor = pdnl_sana.process.CVDABProcessor(
67
+ logger, frame, main_mask=mask,
68
+ apply_smoothing=params.get('apply_smoothing', False),
69
+ normalize_background=params.get('normalize_background', False),
70
+ stain_vector=params.get('stain_vector', None)
71
+ )
72
+ hist = processor.dab.get_histogram(mask=processor.main_mask)
73
+ if histogram is None:
74
+ histogram = hist
75
+ else:
76
+ histogram = histogram + hist
77
+ processor.dab.save(os.path.join(out_d, 'stain.npy'))
71
78
 
72
79
  # calculate the threshold
73
80
  if not histogram is None:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pdnl_process"
7
- version = "0.4"
7
+ version = "0.5"
8
8
  authors = [
9
9
  { name="Noah Capp", email="noahmcapp@gmail.com" },
10
10
  ]
File without changes
File without changes