changeset 3:9e462c4e8367 draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/ocean_data_view_manager commit 03e7755bd0554044c4ca46c27007ee03a58b8d89
author ecology
date Fri, 13 Jun 2025 14:11:38 +0000
parents 5040d466761b
children 94c2de92bccc
files tool_odv_history.xml
diffstat 1 files changed, 17 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tool_odv_history.xml	Wed Jun 11 18:23:30 2025 +0000
+++ b/tool_odv_history.xml	Fri Jun 13 14:11:38 2025 +0000
@@ -2,7 +2,7 @@
     <description>reports user action performed with ODV</description>
     <macros>
         <token name="@VERSION@">1.1</token>
-        <token name="@VERSION_SUFFIX@">0.1</token>
+        <token name="@VERSION_SUFFIX@">1</token>
     </macros>
     <requirements>
         <container type="docker">easyqcvbgc/easy-qcv_odv-history-manager_tool:@VERSION@</container>
@@ -16,8 +16,14 @@
         mkdir -p ./outputs &&
 
 	#for $i, $infile in enumerate($input_raw):
-        	cp '$infile' '/runtime/data-in-raw/${infile.element_identifier}' &&
-        #end for
+            #set real_name = $infile.element_identifier
+            #set extension = $real_name.split('.')[-1]
+            #if  $extension == 'nc':
+                cp '${infile.file_name}' "/runtime/data-in-raw/${infile.element_identifier}" &&
+            #else
+                cp '${infile.file_name}' "/runtime/data-in-raw/${infile.element_identifier}.nc" &&
+            #end if        
+	#end for
         #if $input_odv:
             #for $i, $infile in enumerate($input_odv):            
                 cp '$infile' '/runtime/data-in-history/${infile.element_identifier}' &&
@@ -43,7 +49,13 @@
             #mandatory information
                 file_name_list_raw :
                     #for $i, $infile in enumerate($input_raw):
-                        #set name_raw='${infile.element_identifier}'
+			#set real_name = $infile.element_identifier
+			#set extension = $real_name.split('.')[-1]
+			#if  $extension == 'nc':
+			    #set name_raw='${infile.element_identifier}'
+			#else:
+			    #set name_raw='${infile.element_identifier}.nc'
+			#end if 
                         - ${name_raw}
                     #end for
             #optional
@@ -135,7 +147,7 @@
     </tests>
     <help><![CDATA[
 ======================
-ODV collection manager
+ODV history manager
 ======================
 
 **What it does**