Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Jun 26, 2017
1 parent 02ffcd5 commit e8c2313
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/galaxy/datatypes/data.py
Expand Up @@ -74,6 +74,7 @@ class Data( object ):
"""
edam_data = "data_0006"
edam_format = "format_1915"
file_ext = 'data'
# Data is not chunkable by default.
CHUNKABLE = False

Expand Down Expand Up @@ -682,7 +683,7 @@ def matches_any( self, target_datatypes ):
Check if this datatype is of any of the target_datatypes or is
a subtype thereof.
"""
datatype_classes = tuple( [ datatype if isclass( datatype ) else datatype.__class__ for datatype in target_datatypes ] )
datatype_classes = tuple( datatype if isclass( datatype ) else datatype.__class__ for datatype in target_datatypes )
return isinstance( self, datatype_classes )

def merge( split_files, output_file):
Expand Down
6 changes: 3 additions & 3 deletions lib/galaxy/tools/parameters/basic.py
Expand Up @@ -75,7 +75,7 @@ def __init__( self, tool, input_source, context=None ):
self.tool = tool
self.refresh_on_change_values = []
self.argument = input_source.get( "argument" )
self.name = ToolParameter.parse_name( input_source )
self.name = self.__class__.parse_name( input_source )
self.type = input_source.get( "type" )
self.hidden = input_source.get( "hidden", False )
self.refresh_on_change = input_source.get_bool( "refresh_on_change", False )
Expand Down Expand Up @@ -227,8 +227,8 @@ def build( cls, tool, param ):
else:
return parameter_types[ param_type ]( tool, param )

@classmethod
def parse_name( cls, input_source ):
@staticmethod
def parse_name( input_source ):
name = input_source.get( 'name' )
if name is None:
argument = input_source.get( 'argument' )
Expand Down

0 comments on commit e8c2313

Please sign in to comment.