changeset 1:b79faea33a8a draft

planemo upload for repository https://github.com/jeremyfix/medenv commit 56fa523a7852e06962a05a05224ca193c25e20bc
author ecology
date Sat, 24 Feb 2024 18:12:18 +0000
parents f82f266381be
children ca00b2eabdf3
files med_environ.py med_environ.xml
diffstat 2 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/med_environ.py	Thu Feb 15 20:01:29 2024 +0000
+++ b/med_environ.py	Sat Feb 24 18:12:18 2024 +0000
@@ -63,11 +63,10 @@
 
     # Loads the input dataset
     df = pd.read_csv(args.datafile, sep="\t")
-    lat_key = df.columns[args.lat_key]
-    long_key = df.columns[args.long_key]
-    depth_key = df.columns[args.depth_key]
-    date_key = df.columns[args.date_key]
-    print(lat_key, long_key, depth_key, date_key)
+    lat_key = df.columns[args.lat_key - 1]
+    long_key = df.columns[args.long_key - 1]
+    depth_key = df.columns[args.depth_key - 1]
+    date_key = df.columns[args.date_key - 1]
 
     df = df.apply(
         environment_observation,
--- a/med_environ.xml	Thu Feb 15 20:01:29 2024 +0000
+++ b/med_environ.xml	Sat Feb 24 18:12:18 2024 +0000
@@ -75,11 +75,11 @@
         <test expect_num_outputs="1">
             <param name="input" value="reef_life_subset.tsv"/>
             <param name="env_variables" value="bathymetry"/> <!-- This test is requesting etopo only -->
-            <param name="lat_key" value="8"/>
-            <param name="long_key" value="9"/>
+            <param name="lat_key" value="9"/>
+            <param name="long_key" value="10"/>
             <param name="tol_spatial_coordinates" value="0.2"/>
-            <param name="depth_key" value="11"/>
-            <param name="date_key" value="10"/>
+            <param name="depth_key" value="12"/>
+            <param name="date_key" value="11"/>
             <param name="verbose" value="False"/>
             <output name="out_file" file="expected-output.tsv">
                 <assert_contents>