changeset 359:820befcfb42f draft

Uploaded
author francesco_lapi
date Thu, 04 Sep 2025 23:27:52 +0000
parents 3fc99f6b7668
children 6ab85843c255
files COBRAxy/custom_data_generator.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/custom_data_generator.py	Thu Sep 04 23:19:54 2025 +0000
+++ b/COBRAxy/custom_data_generator.py	Thu Sep 04 23:27:52 2025 +0000
@@ -22,8 +22,6 @@
 
     parser.add_argument("--out_log", type=str, required=True,
                         help="Output log file")
-    parser.add_argument("--out_data", type=str, required=True,
-                        help="Single output dataset (CSV or Excel)")
 
     parser.add_argument("--model", type=str,
                         help="Built-in model identifier (e.g., ENGRO2, Recon, HMRcore)")
@@ -251,13 +249,13 @@
 
     merged = merged.sort_values(by = "InMedium", ascending = False)
 
-    out_file = os.path.join(ARGS.output_path, f"{os.path.basename(ARGS.name).split('.')[0]}_custom_data")
+    #out_file = os.path.join(ARGS.output_path, f"{os.path.basename(ARGS.name).split('.')[0]}_custom_data")
 
     #merged.to_csv(out_file, sep = '\t', index = False)
 
 
     ####
-    out_data_path = ARGS.out_data
+    out_data_path = ARGS.output_path
 
     if ARGS.output_format == "xlsx":
         merged.to_excel(out_data_path, index=False)