commit/galaxy-central: jgoecks: Handle scores with value '.' in data providers.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/1bc0b9fd0d08/ changeset: 1bc0b9fd0d08 user: jgoecks date: 2011-10-11 22:53:21 summary: Handle scores with value '.' in data providers. affected #: 1 file (-1 bytes) --- a/lib/galaxy/visualization/tracks/data_providers.py Tue Oct 11 16:00:04 2011 -0400 +++ b/lib/galaxy/visualization/tracks/data_providers.py Tue Oct 11 16:53:21 2011 -0400 @@ -205,7 +205,10 @@ # Score (filter data) if length >= 5 and filter_cols and filter_cols[0] == "Score": - payload.append( float(feature[4]) ) + try: + payload.append( float( feature[4] ) ) + except: + payload.append( feature[4] ) rval.append( payload ) @@ -828,7 +831,10 @@ # Add filter data to payload. for col in filter_cols: if col == "Score": - payload.append( float( feature.score ) ) + try: + payload.append( float( feature.score ) ) + except: + payload.append( feature.score ) elif col in feature.attributes: try: payload.append( float( feature.attributes[col] ) ) 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)
-
Bitbucket