commit/galaxy-central: dan: Fix for TabularToolDataTable.get_named_fields_list() when a data line has extra columns.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/da99d403f337/ Changeset: da99d403f337 User: dan Date: 2015-02-11 17:37:59+00:00 Summary: Fix for TabularToolDataTable.get_named_fields_list() when a data line has extra columns. Affected #: 1 file diff -r 70caaa5b7ff7dd4a11ddead7d946cb145e58686a -r da99d403f3375c31e8d784a91d430fe7068de1ab lib/galaxy/tools/data/__init__.py --- a/lib/galaxy/tools/data/__init__.py +++ b/lib/galaxy/tools/data/__init__.py @@ -353,11 +353,13 @@ def get_named_fields_list( self ): rval = [] - named_colums = self.get_column_name_list() + named_columns = self.get_column_name_list() for fields in self.get_fields(): field_dict = {} for i, field in enumerate( fields ): - field_name = named_colums[i] + if i == len( named_columns ): + break + field_name = named_columns[i] if field_name is None: field_name = i # check that this is supposed to be 0 based. field_dict[ field_name ] = field Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org