mippy 2.20.2__tar.gz → 2.20.4__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.
Files changed (86) hide show
  1. {mippy-2.20.2 → mippy-2.20.4}/PKG-INFO +1 -1
  2. {mippy-2.20.2 → mippy-2.20.4}/mippy/improcess.py +1 -1
  3. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/philips_fallback.py +12 -2
  4. {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/PKG-INFO +1 -1
  5. {mippy-2.20.2 → mippy-2.20.4}/LICENSE +0 -0
  6. {mippy-2.20.2 → mippy-2.20.4}/README.md +0 -0
  7. {mippy-2.20.2 → mippy-2.20.4}/mippy/__init__.py +0 -0
  8. {mippy-2.20.2 → mippy-2.20.4}/mippy/application.py +0 -0
  9. {mippy-2.20.2 → mippy-2.20.4}/mippy/fileio.py +0 -0
  10. {mippy-2.20.2 → mippy-2.20.4}/mippy/html.py +0 -0
  11. {mippy-2.20.2 → mippy-2.20.4}/mippy/launcher.py +0 -0
  12. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/16_colors.csv +0 -0
  13. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/blue.csv +0 -0
  14. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/colours_roman.csv +0 -0
  15. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/cyan.csv +0 -0
  16. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/fire.csv +0 -0
  17. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/green.csv +0 -0
  18. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/green_fire_blue.csv +0 -0
  19. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/hi_lo.csv +0 -0
  20. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/ice.csv +0 -0
  21. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/magenta.csv +0 -0
  22. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/phase.csv +0 -0
  23. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/physics.csv +0 -0
  24. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/rainbow.csv +0 -0
  25. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/red.csv +0 -0
  26. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/red_green.csv +0 -0
  27. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/spectrum.csv +0 -0
  28. {mippy-2.20.2 → mippy-2.20.4}/mippy/luts/yellow.csv +0 -0
  29. {mippy-2.20.2 → mippy-2.20.4}/mippy/math.py +0 -0
  30. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/__init__.py +0 -0
  31. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/anon.py +0 -0
  32. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/io.py +0 -0
  33. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/SIEMENS.py +0 -0
  34. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/__init__.py +0 -0
  35. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/ge_fallback.py +0 -0
  36. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/implementations.py +0 -0
  37. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/siemens_fallback.py +0 -0
  38. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/syngo_mr_xa20a.py +0 -0
  39. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/miners/syngo_mr_xa31a.py +0 -0
  40. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/mrenhanced.py +0 -0
  41. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/mrspectroscopy.py +0 -0
  42. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/pixel.py +0 -0
  43. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/reading.py +0 -0
  44. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/siemens.py +0 -0
  45. {mippy-2.20.2 → mippy-2.20.4}/mippy/mdicom/xml.py +0 -0
  46. {mippy-2.20.2 → mippy-2.20.4}/mippy/misc.py +0 -0
  47. {mippy-2.20.2 → mippy-2.20.4}/mippy/mlogging.py +0 -0
  48. {mippy-2.20.2 → mippy-2.20.4}/mippy/mviewer/__init__.py +0 -0
  49. {mippy-2.20.2 → mippy-2.20.4}/mippy/mviewer/config +0 -0
  50. {mippy-2.20.2 → mippy-2.20.4}/mippy/mviewer/module_main.py +0 -0
  51. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/add.png +0 -0
  52. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/brain_bw.xbm +0 -0
  53. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/brain_orange.ico +0 -0
  54. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/common.png +0 -0
  55. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/dcmdjpeg_linux +0 -0
  56. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/dcmdjpeg_mac +0 -0
  57. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/dcmdjpeg_win.exe +0 -0
  58. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/ellipse_roi.png +0 -0
  59. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/freehand_roi.png +0 -0
  60. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/line_roi.png +0 -0
  61. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/mrs.png +0 -0
  62. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_circle.png +0 -0
  63. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_ellipse.png +0 -0
  64. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_freehand.png +0 -0
  65. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_line.png +0 -0
  66. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_rectangular.png +0 -0
  67. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/roi_rectangular_ab.png +0 -0
  68. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash11.jpg +0 -0
  69. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash20.bmp +0 -0
  70. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash20.jpg +0 -0
  71. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/splash3.jpg +0 -0
  72. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/square_roi.png +0 -0
  73. {mippy-2.20.2 → mippy-2.20.4}/mippy/resources/subtract.png +0 -0
  74. {mippy-2.20.2 → mippy-2.20.4}/mippy/splash.py +0 -0
  75. {mippy-2.20.2 → mippy-2.20.4}/mippy/threading.py +0 -0
  76. {mippy-2.20.2 → mippy-2.20.4}/mippy/viewing.py +0 -0
  77. {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/SOURCES.txt +0 -0
  78. {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/dependency_links.txt +0 -0
  79. {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/requires.txt +0 -0
  80. {mippy-2.20.2 → mippy-2.20.4}/mippy.egg-info/top_level.txt +0 -0
  81. {mippy-2.20.2 → mippy-2.20.4}/scripts/_mippy.py +0 -0
  82. {mippy-2.20.2 → mippy-2.20.4}/scripts/install_mippy.bat +0 -0
  83. {mippy-2.20.2 → mippy-2.20.4}/scripts/install_mippy.py +0 -0
  84. {mippy-2.20.2 → mippy-2.20.4}/scripts/mippy.bat +0 -0
  85. {mippy-2.20.2 → mippy-2.20.4}/setup.cfg +0 -0
  86. {mippy-2.20.2 → mippy-2.20.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mippy
3
- Version: 2.20.2
3
+ Version: 2.20.4
4
4
  Summary: Modular Image Processing in Python
5
5
  Home-page: https://tree.taiga.io/project/robflintham-mippy/
6
6
  Author: Robert Flintham
@@ -63,7 +63,7 @@ def find_object_geometry(image,subpixel=True,search_region=None,threshold=None,i
63
63
  ellipse_val = best_ellipse.fun
64
64
  rectangle_val = best_rectangle.fun
65
65
 
66
- if ellipse_val < rectangle_val:
66
+ if ellipse_val <= rectangle_val:
67
67
  result = best_ellipse.x
68
68
  shapetype='ellipse'
69
69
  elif ellipse_val > rectangle_val:
@@ -27,6 +27,16 @@ def get_image_orientation(dicom_ds):
27
27
  print("ORIENTATION NOT DETECTED", orient)
28
28
  return "UNKNOWN"
29
29
 
30
+ def is_number(s):
31
+ """
32
+ Tests if a string is readable as a number
33
+ """
34
+ try:
35
+ float(s)
36
+ except ValueError:
37
+ return False
38
+ return True
39
+
30
40
  def get_sequence_type(dicom_ds):
31
41
  try:
32
42
  seq = dicom_ds.PulseSequenceName
@@ -324,10 +334,10 @@ def get_image_filter(dicom_ds):
324
334
 
325
335
  def get_uniformity_correction(dicom_ds):
326
336
  try:
327
- syncra = dicom_ds[0x2005,0x10a1].value
337
+ syncra = str(dicom_ds[0x2005,0x10a1].value).upper()
328
338
  except KeyError:
329
339
  syncra = ''
330
- imtype = dicom_ds.ImageType
340
+ imtype = str(dicom_ds.ImageType).upper()
331
341
  clear = False
332
342
  sense = False
333
343
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mippy
3
- Version: 2.20.2
3
+ Version: 2.20.4
4
4
  Summary: Modular Image Processing in Python
5
5
  Home-page: https://tree.taiga.io/project/robflintham-mippy/
6
6
  Author: Robert Flintham
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes