changeset 139:56e3758679bb draft

Uploaded
author luca_milaz
date Tue, 02 Jul 2024 22:30:05 +0000
parents 6b916004ae94
children 7f9f64446e05
files marea_2_0/flux_sampling.py
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2_0/flux_sampling.py	Tue Jul 02 22:09:29 2024 +0000
+++ b/marea_2_0/flux_sampling.py	Tue Jul 02 22:30:05 2024 +0000
@@ -42,6 +42,7 @@
     
     parser.add_argument('-in', '--inputs',
                         required = True,
+                        type=str,
                         help = 'inputs model')
     
     parser.add_argument('-a', '--algorithm',
@@ -194,16 +195,12 @@
 
 
     utils.logWarning(
-        ARGS.inputs,
+        utils.FilePath.fromStrPath(ARGS.inputs.split(",")[0]),
         ARGS.out_log)
 
 
     # load custom model
-    model1 = load_custom_model(
-        utils.FilePath.fromStrPath(ARGS.inputs.split(",")[0]))
-    model2 = load_custom_model(
-        utils.FilePath.fromStrPath(ARGS.inputs.split(",")[1]))
-    
+    model1 = load_custom_model(utils.FilePath.fromStrPath(ARGS.inputs.split(",")[0]))