diff general.py @ 68:ba5866d0251d draft

"planemo upload for repository https://github.com/rolfverberg/galaxytools commit 3fde3e85030608a8a4d8e59308353b0144314dfe"
author rv43
date Fri, 19 Aug 2022 20:16:56 +0000
parents f31ef7bfb430
children fba792d5f83b
line wrap: on
line diff
--- a/general.py	Thu Aug 18 15:40:59 2022 +0000
+++ b/general.py	Fri Aug 19 20:16:56 2022 +0000
@@ -739,7 +739,7 @@
     # Find available index range
     if filetype == 'tif':
         if not isinstance(path, str) or not os.path.isdir(path):
-            illegal_value(path, 'path', 'findImageRange')
+            illegal_value(path, 'path', 'findImageFiles')
             return -1, 0, []
         indexRegex = re.compile(r'\d+')
         # At this point only tiffs
@@ -762,7 +762,7 @@
         paths = [os.path.join(path, f) for f in files]
     elif filetype == 'h5':
         if not isinstance(path, str) or not os.path.isfile(path):
-            illegal_value(path, 'path', 'findImageRange')
+            illegal_value(path, 'path', 'findImageFiles')
             return -1, 0, []
         # At this point only h5 in alamo2 detector style
         first_index = 0
@@ -771,7 +771,7 @@
             last_index = num_imgs-1
         paths = [path]
     else:
-        illegal_value(filetype, 'filetype', 'findImageRange')
+        illegal_value(filetype, 'filetype', 'findImageFiles')
         return -1, 0, []
     logging.debug('\nNumber of available'+name+f'images: {num_imgs}')
     logging.debug('Index range of available'+name+f'images: [{first_index}, '+