changeset 400:e94735cb40fa draft

Uploaded
author francesco_lapi
date Sun, 07 Sep 2025 20:07:44 +0000
parents 172b3959dccf
children 6c7ddf68381a
files COBRAxy/ras_generator.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/ras_generator.py	Sun Sep 07 16:06:38 2025 +0000
+++ b/COBRAxy/ras_generator.py	Sun Sep 07 20:07:44 2025 +0000
@@ -639,11 +639,12 @@
     """
     datFilePath = utils.FilePath.fromStrPath(ARGS.model_upload) # actual file, stored in galaxy as a .dat
 
-    try: filenamePath = utils.FilePath.fromStrPath(ARGS.model_upload_name) # file's name in input, to determine its original ext
-    except utils.PathErr as err:
-        raise utils.PathErr(filenamePath, f"Please make sure your file's name is a valid file path, {err.msg}")
+    #try: filenamePath = utils.FilePath.fromStrPath(ARGS.model_upload_name) # file's name in input, to determine its original ext
+    #except utils.PathErr as err:      
+    #    utils.logWarning(f"Cannot determine file extension from filename '{ARGS.model_upload_name}'. Assuming tabular format.", ARGS.out_log)
+    #    filenamePath = None
      
-    if filenamePath.ext is utils.FileFormat.PICKLE: return utils.readPickle(datFilePath)
+    #if filenamePath.ext is utils.FileFormat.PICKLE: return utils.readPickle(datFilePath)
 
     dict_rule = {}
     for line in utils.readCsv(datFilePath, delimiter = "\t"):