From a889e19af7b5a6b87881a4ade1dad4efae168858 Mon Sep 17 00:00:00 2001 From: guerler Date: Thu, 14 Apr 2016 07:15:17 -0400 Subject: [PATCH] Fix parameter wrapping --- lib/galaxy/tools/wrappers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/galaxy/tools/wrappers.py b/lib/galaxy/tools/wrappers.py index 196f1845d72..0acf136163a 100644 --- a/lib/galaxy/tools/wrappers.py +++ b/lib/galaxy/tools/wrappers.py @@ -81,6 +81,9 @@ class InputValueWrapper( ToolParameterValueWrapper ): else: return super( InputValueWrapper, self ) == other + def __ne__( self, other ): + return not self == other + def __str__( self ): to_param_dict_string = self.input.to_param_dict_string( self.value, self._other_values ) if isinstance( to_param_dict_string, list ): @@ -146,6 +149,9 @@ class SelectToolParameterWrapper( ToolParameterValueWrapper ): else: return super( SelectToolParameterWrapper, self ) == other + def __ne__( self, other ): + return not self == other + def __str__( self ): # Assuming value is never a path - otherwise would need to pass # along following argument value_map=self._path_rewriter.