changeset 140:be24e86b2487 draft

Uploaded
author luca_milaz
date Sun, 21 Jul 2024 21:14:09 +0000
parents b00ec73b1c57
children 397f2775b493
files marea_2/ras_to_bounds.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/ras_to_bounds.py	Sun Jul 21 21:05:46 2024 +0000
+++ b/marea_2/ras_to_bounds.py	Sun Jul 21 21:14:09 2024 +0000
@@ -189,8 +189,9 @@
 
     if(ARGS.medium_selector == "Custom"):
         medium = read_dataset(ARGS.input_medium, "medium dataset")
+        medium.set_index(medium.columns[0], inplace=True)
         medium = medium.astype(float)
-        medium = medium['medium'].to_dict()
+        medium = medium[medium.columns[0]].to_dict()
     else:
         df_mediums = pd.read_csv(ARGS.tool_dir + "/local/medium/medium.csv", index_col = 0)
         ARGS.medium_selector = ARGS.medium_selector.replace("_", " ")