changeset 117:bb470e1319dd draft

Uploaded
author luca_milaz
date Tue, 02 Jul 2024 20:06:18 +0000
parents 1857af873315
children bad889c7214b
files marea_2_0/flux_sampling.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2_0/flux_sampling.py	Tue Jul 02 20:06:03 2024 +0000
+++ b/marea_2_0/flux_sampling.py	Tue Jul 02 20:06:18 2024 +0000
@@ -182,15 +182,15 @@
     ARGS.output_folder = 'flux_sampling/'
 
 
-    
+    modelNames = []
+    modelNames[0] = os.path.splitext(os.path.basename(ARGS.input_model[0]))[0] # extract model filename only
+    modelNames[1] = os.path.splitext(os.path.basename(ARGS.input_model[1]))[0] # extract model filename only
+
     # load custom model
     model1 = load_custom_model(
-        utils.FilePath.fromStrPath(ARGS.input_model[0]), utils.FilePath.fromStrPath(ARGS.model_name[0]).ext)
+        utils.FilePath.fromStrPath(ARGS.input_model[0]), modelNames[0].ext)
     model2 = load_custom_model(
-        utils.FilePath.fromStrPath(ARGS.input_model[1]), utils.FilePath.fromStrPath(ARGS.model_name[1]).ext)
-    
-    #ARGS.model_name = os.path.splitext(os.path.basename(ARGS.input_model))[0] # extract model filename only
-
+        utils.FilePath.fromStrPath(ARGS.input_model[1]), modelNames[1].ext)
 
     with open(ARGS.output_folder, 'w') as f:
                 f.write([model1, model2])