changeset 545:5a73d813b1db draft

Uploaded
author luca_milaz
date Mon, 27 Oct 2025 12:32:48 +0000
parents 540ab7dd1322
children 01147e83f43c
files COBRAxy/src/flux_simulation.xml
diffstat 1 files changed, 30 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/src/flux_simulation.xml	Sun Oct 26 19:43:31 2025 +0000
+++ b/COBRAxy/src/flux_simulation.xml	Mon Oct 27 12:32:48 2025 +0000
@@ -22,19 +22,11 @@
         
         #if $model_and_bounds.model_and_bounds == 'True':
             --model_upload $model_and_bounds.model_upload
-            --input "${",".join(map(str, $model_and_bounds.inputs))}"
-            #set $names_list = []
-            #for $input_temp in $model_and_bounds.inputs:
-                #silent $names_list.append(str($input_temp.element_identifier))
-            #end for
-            --name "${",".join($names_list)}"
+            --input_file $input_paths_file
+            --name_file $input_names_file
         #else:
-            --input "${",".join(map(str, $model_and_bounds.model_files))}"
-            #set $names_list = []
-            #for $input_temp in $model_and_bounds.model_files:
-                #silent $names_list.append(str($input_temp.element_identifier))
-            #end for
-            --name "${",".join($names_list)}"
+            --input_file $model_paths_file
+            --name_file $model_names_file
         #end if
         
         --sampling_enabled $sampling_params.sampling_enabled
@@ -92,6 +84,32 @@
         ]]>
     </command>
 
+    <configfiles>
+        <configfile name="input_paths_file"><![CDATA[#if $model_and_bounds.model_and_bounds == 'True'
+#for $input_temp in $model_and_bounds.inputs
+${input_temp}
+#end for
+#end if]]></configfile>
+        
+        <configfile name="input_names_file"><![CDATA[#if $model_and_bounds.model_and_bounds == 'True'
+#for $input_temp in $model_and_bounds.inputs
+${input_temp.element_identifier}
+#end for
+#end if]]></configfile>
+        
+        <configfile name="model_paths_file"><![CDATA[#if $model_and_bounds.model_and_bounds == 'False'
+#for $input_temp in $model_and_bounds.model_files
+${input_temp}
+#end for
+#end if]]></configfile>
+        
+        <configfile name="model_names_file"><![CDATA[#if $model_and_bounds.model_and_bounds == 'False'
+#for $input_temp in $model_and_bounds.model_files
+${input_temp.element_identifier}
+#end for
+#end if]]></configfile>
+    </configfiles>
+
     <inputs>
         <conditional name="model_and_bounds">
             <param name="model_and_bounds" argument="--model_and_bounds" type="select" label="Input format:" help="Choose whether to upload the model and bounds in separate files or to upload multiple complete model files.">