changeset 135:da75823f150a draft

Uploaded
author luca_milaz
date Sun, 21 Jul 2024 20:53:30 +0000
parents f66ccbf6338e
children 58293959c3ce
files marea_2/ras_to_bounds.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/ras_to_bounds.py	Sun Jul 21 20:47:31 2024 +0000
+++ b/marea_2/ras_to_bounds.py	Sun Jul 21 20:53:30 2024 +0000
@@ -55,7 +55,7 @@
     
     parser.add_argument('-rs', '--ras_selector',
                         required = True,
-                        type=bool,
+                        type=utils.Bool("using_RAS"),
                         help = 'ras selector')
     
     ARGS = parser.parse_args()
@@ -173,8 +173,6 @@
 
     ARGS.output_folder = 'ras_to_bounds/'
 
-    mediumPath = utils.FilePath("medium", ".csv", prefix = 'ras_to_bounds_medium')
-
     if(ARGS.ras_selector == True):
         ras = read_dataset(ARGS.input_ras, "ras dataset")
         ras.replace("None", None, inplace=True)
@@ -202,8 +200,6 @@
     else:
         generate_bounds(model, medium)
 
-    mediumDf = pd.DataFrame.from_dict(medium, orient='index', columns=["value"])
-    mediumDf.to_csv(mediumPath.show(), sep = '\t')
     pass
         
 ##############################################################################