changeset 5:3bf5661c0280 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/table_compute commit f0fd699a4e713c57ab7d3d9d8cbb18b41aa6c7cd
author iuc
date Mon, 14 Nov 2022 10:54:20 +0000
parents 93a3ce78ce55
children
files scripts/table_compute.py table_compute.xml
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/table_compute.py	Tue Apr 20 15:46:10 2021 +0000
+++ b/scripts/table_compute.py	Mon Nov 14 10:54:20 2022 +0000
@@ -57,7 +57,7 @@
                         for col in data.columns]
         data.index = [row.strip() if type(row) is str else row
                       for row in data.index]
-        return(data)
+        return data
 
     @staticmethod
     def rangemaker(tab):
@@ -106,8 +106,8 @@
                     err_mess = "%s should not be equal or contain a zero" % nums
             if err_mess:
                 print(err_mess)
-                return(None)
-        return(out)
+                return None
+        return out
 
 
 # Set decimal precision
@@ -318,7 +318,7 @@
             pivot_values = params["PIVOT"]["pivot_values"]
             pivot_aggfunc = params["PIVOT"]["pivot_aggfunc"]
 
-            if not(pivot_aggfunc):
+            if not pivot_aggfunc:
                 out_table = data.pivot(
                     index=pivot_index, columns=pivot_column, values=pivot_values
                 )
--- a/table_compute.xml	Tue Apr 20 15:46:10 2021 +0000
+++ b/table_compute.xml	Mon Nov 14 10:54:20 2022 +0000
@@ -1204,7 +1204,7 @@
             <!-- Test 36: Skip first 3 lines -->
             <conditional name="singtabop" >
                 <param name="use_type" value="single" />
-                <param name="input" value="skiplines.tsv" />
+                <param name="input" value="skiplines.tsv" ftype="tabular" />
                 <section name="adv" >
                     <param name="header" value="2" />
                     <param name="nrows" value="4" />
@@ -1227,7 +1227,7 @@
             <!-- Test 37: Skip first 3 lines -->
             <conditional name="singtabop" >
                 <param name="use_type" value="single" />
-                <param name="input" value="skiplines.tsv" />
+                <param name="input" value="skiplines.tsv" ftype="tabular" />
                 <section name="adv" >
                     <param name="header" value="2" />
                     <param name="skipfooter" value="2" />