Mercurial > repos > ecology > iabiodiv_smartbiodiv_med_environ
diff med_environ.py @ 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 |
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,