# HG changeset patch # User francesco_lapi # Date 1757275664 0 # Node ID e94735cb40fa8581007b394220f05adb15cdbbe7 # Parent 172b3959dccfdc3364cc6bca29897f2f6f629943 Uploaded diff -r 172b3959dccf -r e94735cb40fa COBRAxy/ras_generator.py --- 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"):