mippy 2.22.3__tar.gz → 2.22.6__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 (89) hide show
  1. {mippy-2.22.3 → mippy-2.22.6}/PKG-INFO +3 -2
  2. {mippy-2.22.3 → mippy-2.22.6}/mippy/application.py +69 -67
  3. {mippy-2.22.3 → mippy-2.22.6}/mippy.egg-info/PKG-INFO +3 -2
  4. {mippy-2.22.3 → mippy-2.22.6}/mippy.egg-info/requires.txt +2 -1
  5. {mippy-2.22.3 → mippy-2.22.6}/LICENSE +0 -0
  6. {mippy-2.22.3 → mippy-2.22.6}/README.md +0 -0
  7. {mippy-2.22.3 → mippy-2.22.6}/mippy/__init__.py +0 -0
  8. {mippy-2.22.3 → mippy-2.22.6}/mippy/fileio.py +0 -0
  9. {mippy-2.22.3 → mippy-2.22.6}/mippy/html.py +0 -0
  10. {mippy-2.22.3 → mippy-2.22.6}/mippy/improcess.py +0 -0
  11. {mippy-2.22.3 → mippy-2.22.6}/mippy/launcher.py +0 -0
  12. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/16_colors.csv +0 -0
  13. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/blue.csv +0 -0
  14. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/colours_roman.csv +0 -0
  15. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/cyan.csv +0 -0
  16. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/fire.csv +0 -0
  17. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/green.csv +0 -0
  18. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/green_fire_blue.csv +0 -0
  19. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/hi_lo.csv +0 -0
  20. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/ice.csv +0 -0
  21. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/magenta.csv +0 -0
  22. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/phase.csv +0 -0
  23. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/physics.csv +0 -0
  24. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/rainbow.csv +0 -0
  25. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/red.csv +0 -0
  26. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/red_green.csv +0 -0
  27. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/red_grey_green.csv +0 -0
  28. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/red_grey_green_clipped.csv +0 -0
  29. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/spectrum.csv +0 -0
  30. {mippy-2.22.3 → mippy-2.22.6}/mippy/luts/yellow.csv +0 -0
  31. {mippy-2.22.3 → mippy-2.22.6}/mippy/math.py +0 -0
  32. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/__init__.py +0 -0
  33. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/anon.py +0 -0
  34. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/io.py +0 -0
  35. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/SIEMENS.py +0 -0
  36. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/__init__.py +0 -0
  37. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/ge_fallback.py +0 -0
  38. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/implementations.py +0 -0
  39. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/philips_fallback.py +0 -0
  40. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/siemens_fallback.py +0 -0
  41. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/syngo_mr_xa20a.py +0 -0
  42. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/miners/syngo_mr_xa31a.py +0 -0
  43. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/mrenhanced.py +0 -0
  44. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/mrspectroscopy.py +0 -0
  45. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/pixel.py +0 -0
  46. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/reading.py +0 -0
  47. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/siemens.py +0 -0
  48. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/sorting.py +0 -0
  49. {mippy-2.22.3 → mippy-2.22.6}/mippy/mdicom/xml.py +0 -0
  50. {mippy-2.22.3 → mippy-2.22.6}/mippy/misc.py +0 -0
  51. {mippy-2.22.3 → mippy-2.22.6}/mippy/mlogging.py +0 -0
  52. {mippy-2.22.3 → mippy-2.22.6}/mippy/mviewer/__init__.py +0 -0
  53. {mippy-2.22.3 → mippy-2.22.6}/mippy/mviewer/config +0 -0
  54. {mippy-2.22.3 → mippy-2.22.6}/mippy/mviewer/module_main.py +0 -0
  55. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/add.png +0 -0
  56. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/brain_bw.xbm +0 -0
  57. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/brain_orange.ico +0 -0
  58. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/common.png +0 -0
  59. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/dcmdjpeg_linux +0 -0
  60. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/dcmdjpeg_mac +0 -0
  61. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/dcmdjpeg_win.exe +0 -0
  62. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/ellipse_roi.png +0 -0
  63. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/freehand_roi.png +0 -0
  64. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/line_roi.png +0 -0
  65. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/mrs.png +0 -0
  66. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/roi_circle.png +0 -0
  67. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/roi_ellipse.png +0 -0
  68. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/roi_freehand.png +0 -0
  69. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/roi_line.png +0 -0
  70. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/roi_rectangular.png +0 -0
  71. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/roi_rectangular_ab.png +0 -0
  72. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/splash11.jpg +0 -0
  73. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/splash20.bmp +0 -0
  74. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/splash20.jpg +0 -0
  75. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/splash3.jpg +0 -0
  76. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/square_roi.png +0 -0
  77. {mippy-2.22.3 → mippy-2.22.6}/mippy/resources/subtract.png +0 -0
  78. {mippy-2.22.3 → mippy-2.22.6}/mippy/splash.py +0 -0
  79. {mippy-2.22.3 → mippy-2.22.6}/mippy/threading.py +0 -0
  80. {mippy-2.22.3 → mippy-2.22.6}/mippy/viewing.py +0 -0
  81. {mippy-2.22.3 → mippy-2.22.6}/mippy.egg-info/SOURCES.txt +0 -0
  82. {mippy-2.22.3 → mippy-2.22.6}/mippy.egg-info/dependency_links.txt +0 -0
  83. {mippy-2.22.3 → mippy-2.22.6}/mippy.egg-info/top_level.txt +0 -0
  84. {mippy-2.22.3 → mippy-2.22.6}/scripts/_mippy.py +0 -0
  85. {mippy-2.22.3 → mippy-2.22.6}/scripts/mippy.bat +0 -0
  86. {mippy-2.22.3 → mippy-2.22.6}/scripts/setup_mippy.bat +0 -0
  87. {mippy-2.22.3 → mippy-2.22.6}/scripts/setup_mippy.py +0 -0
  88. {mippy-2.22.3 → mippy-2.22.6}/setup.cfg +0 -0
  89. {mippy-2.22.3 → mippy-2.22.6}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mippy
3
- Version: 2.22.3
3
+ Version: 2.22.6
4
4
  Summary: Modular Image Processing in Python
5
5
  Home-page: https://gitlab.com/rbf906/mippy
6
6
  Author: Robert Flintham
@@ -28,7 +28,8 @@ Requires-Dist: termcolor
28
28
  Requires-Dist: psutil
29
29
  Requires-Dist: pyscreenshot
30
30
  Requires-Dist: threadpoolctl
31
- Requires-Dist: setuptools
31
+ Requires-Dist: setuptools<81
32
+ Requires-Dist: dicom2nifti
32
33
  Dynamic: author
33
34
  Dynamic: author-email
34
35
  Dynamic: classifier
@@ -784,73 +784,75 @@ class MIPPYMain(Frame):
784
784
  # print(pkg_info)
785
785
  # print(pkg_info['Name'],pkg_info['Version'])
786
786
  # Try to check for newer version of the module
787
- try:
788
- # print(pkg_info)
789
- # print('URL: {}'.format(pkg_info['Home-page']))
790
- if 'api.bintray.com' in pkg_info['Home-page'] and not skip_update:
791
- # Check if proxy required, and if proxy requires authentication
792
- proxies = None
793
- if len(self.proxy_list)>0:
794
- auth_required = False
795
- for proxy in self.proxy_list:
796
- if proxy['auth_required']:
797
- auth_required = True
798
- # If auth required, collect user/password
799
- from easygui import multpasswordbox
800
- fieldNames = ['Username','Password']
801
- title = 'Proxy authentication required'
802
- fieldValues = [self.user.lower(),'']
803
- message = ('Please enter your username and password for the proxy server to check for '
804
- 'updates to {}'.format(pkg_info['Name']))
805
- fieldValues = multpasswordbox(message,title,fieldNames, fieldValues)
806
-
807
- # make sure that none of the fields was left blank
808
- while 1:
809
- if fieldValues == None: break
810
- errmsg = ""
811
- for i in range(len(fieldNames)):
812
- if fieldValues[i].strip() == "":
813
- errmsg = errmsg + ('"%s" is a required field.\n\n' % fieldNames[i])
814
- if errmsg == "": break # no problems found
815
- fieldValues = multpasswordbox(errmsg, title, fieldNames, fieldValues)
816
- if not fieldValues is None:
817
- proxies = {}
818
- for proxy in self.proxy_list:
819
- proxy_info = '{}://{}:{}@{}:{}'.format( proxy['protocol'],
820
- fieldValues[0],
821
- fieldValues[1],
822
- proxy['address'],
823
- proxy['port'])
824
- print(proxy_info)
825
- proxies[proxy['protocol']]=proxy_info
826
- r = requests.get(pkg_info['Home-page'],proxies=proxies)
827
- print(r.json())
828
- latest_version = r.json()['latest_version']
829
- remote_pkg_name = r.json()['name']
830
- print(folder.replace(pkg_info['Version'],latest_version))
831
- print("Installed version: {}\nAvailable version: {}".format(pkg_info['Version'],latest_version))
832
- if parse_version(latest_version)>parse_version(pkg_info['Version']):
833
- download = tkinter.messagebox.askyesno(title="New version available",
834
- message="A newer version of {} is available. Download?".format(remote_pkg_name))
835
- if download==True:
836
- # Get file info for latest version
837
- r = requests.get(pkg_info['Home-page']+'/versions/'+latest_version+'/files',proxies=proxies)
838
- r_owner=r.json()[0]['owner']
839
- r_repo=r.json()[0]['repo']
840
- r_path=r.json()[0]['path']
841
- r_url = 'https://dl.bintray.com/'+r_owner+'/'+r_repo+'/'+r_path
842
- print(r_url)
843
- r_file = r = requests.get(r_url,proxies=proxies)
844
- # Write r_file.content (a byte stream) to the modules folder and move current folder to backups??
845
- print(r_file)
846
- with open(os.path.join(self.moduledir,r_path),'wb') as r_outfile:
847
- r_outfile.write(r_file.content)
848
- modules_to_backup.append(this_eggpath)
849
- elif parse_version(latest_version)<parse_version(pkg_info['Version']):
850
- print("Local version is newer! Weird...")
851
-
852
- except requests.exceptions.ConnectionError:
853
- cprint("ERROR: Unable to connect to repository for version check")
787
+ ### VERSION CHECK DISABLED AS BINTRAY NO LONGER AVAILABLE
788
+ ### INVESTIGATE NEW SERVICE
789
+ # try:
790
+ # # print(pkg_info)
791
+ # # print('URL: {}'.format(pkg_info['Home-page']))
792
+ # if 'api.bintray.com' in pkg_info['Home-page'] and not skip_update:
793
+ # # Check if proxy required, and if proxy requires authentication
794
+ # proxies = None
795
+ # if len(self.proxy_list)>0:
796
+ # auth_required = False
797
+ # for proxy in self.proxy_list:
798
+ # if proxy['auth_required']:
799
+ # auth_required = True
800
+ # # If auth required, collect user/password
801
+ # from easygui import multpasswordbox
802
+ # fieldNames = ['Username','Password']
803
+ # title = 'Proxy authentication required'
804
+ # fieldValues = [self.user.lower(),'']
805
+ # message = ('Please enter your username and password for the proxy server to check for '
806
+ # 'updates to {}'.format(pkg_info['Name']))
807
+ # fieldValues = multpasswordbox(message,title,fieldNames, fieldValues)
808
+
809
+ # # make sure that none of the fields was left blank
810
+ # while 1:
811
+ # if fieldValues == None: break
812
+ # errmsg = ""
813
+ # for i in range(len(fieldNames)):
814
+ # if fieldValues[i].strip() == "":
815
+ # errmsg = errmsg + ('"%s" is a required field.\n\n' % fieldNames[i])
816
+ # if errmsg == "": break # no problems found
817
+ # fieldValues = multpasswordbox(errmsg, title, fieldNames, fieldValues)
818
+ # if not fieldValues is None:
819
+ # proxies = {}
820
+ # for proxy in self.proxy_list:
821
+ # proxy_info = '{}://{}:{}@{}:{}'.format( proxy['protocol'],
822
+ # fieldValues[0],
823
+ # fieldValues[1],
824
+ # proxy['address'],
825
+ # proxy['port'])
826
+ # print(proxy_info)
827
+ # proxies[proxy['protocol']]=proxy_info
828
+ # r = requests.get(pkg_info['Home-page'],proxies=proxies)
829
+ # print(r.json())
830
+ # latest_version = r.json()['latest_version']
831
+ # remote_pkg_name = r.json()['name']
832
+ # print(folder.replace(pkg_info['Version'],latest_version))
833
+ # print("Installed version: {}\nAvailable version: {}".format(pkg_info['Version'],latest_version))
834
+ # if parse_version(latest_version)>parse_version(pkg_info['Version']):
835
+ # download = tkinter.messagebox.askyesno(title="New version available",
836
+ # message="A newer version of {} is available. Download?".format(remote_pkg_name))
837
+ # if download==True:
838
+ # # Get file info for latest version
839
+ # r = requests.get(pkg_info['Home-page']+'/versions/'+latest_version+'/files',proxies=proxies)
840
+ # r_owner=r.json()[0]['owner']
841
+ # r_repo=r.json()[0]['repo']
842
+ # r_path=r.json()[0]['path']
843
+ # r_url = 'https://dl.bintray.com/'+r_owner+'/'+r_repo+'/'+r_path
844
+ # print(r_url)
845
+ # r_file = r = requests.get(r_url,proxies=proxies)
846
+ # # Write r_file.content (a byte stream) to the modules folder and move current folder to backups??
847
+ # print(r_file)
848
+ # with open(os.path.join(self.moduledir,r_path),'wb') as r_outfile:
849
+ # r_outfile.write(r_file.content)
850
+ # modules_to_backup.append(this_eggpath)
851
+ # elif parse_version(latest_version)<parse_version(pkg_info['Version']):
852
+ # print("Local version is newer! Weird...")
853
+
854
+ # except requests.exceptions.ConnectionError:
855
+ # cprint("ERROR: Unable to connect to repository for version check")
854
856
 
855
857
 
856
858
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mippy
3
- Version: 2.22.3
3
+ Version: 2.22.6
4
4
  Summary: Modular Image Processing in Python
5
5
  Home-page: https://gitlab.com/rbf906/mippy
6
6
  Author: Robert Flintham
@@ -28,7 +28,8 @@ Requires-Dist: termcolor
28
28
  Requires-Dist: psutil
29
29
  Requires-Dist: pyscreenshot
30
30
  Requires-Dist: threadpoolctl
31
- Requires-Dist: setuptools
31
+ Requires-Dist: setuptools<81
32
+ Requires-Dist: dicom2nifti
32
33
  Dynamic: author
33
34
  Dynamic: author-email
34
35
  Dynamic: classifier
@@ -17,4 +17,5 @@ termcolor
17
17
  psutil
18
18
  pyscreenshot
19
19
  threadpoolctl
20
- setuptools
20
+ setuptools<81
21
+ dicom2nifti
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
File without changes