commit/galaxy-central: jgoecks: Change variable names to avoid conflict with built-in functions.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/c2199c181f09/ changeset: c2199c181f09 user: jgoecks date: 2013-01-11 18:16:44 summary: Change variable names to avoid conflict with built-in functions. affected #: 1 file diff -r 3faa833c15b5162db69f061bdbd4e951ba2ffdc7 -r c2199c181f09fd5b94a9f5ea13fc39b28e803f2c lib/galaxy/visualization/data_providers/genome.py --- a/lib/galaxy/visualization/data_providers/genome.py +++ b/lib/galaxy/visualization/data_providers/genome.py @@ -1062,8 +1062,8 @@ summary = _summarize_bbi( bbi, chrom, start, end, 1 ) f.close() - min = 0 - max = 0 + min_val = 0 + max_val = 0 mean = 0 sd = 0 if summary is not None: @@ -1077,10 +1077,10 @@ if valid_count > 1: var /= valid_count - 1 sd = numpy.sqrt( var ) - min = summary.min_val[0] - max = summary.max_val[0] + min_val = summary.min_val[0] + max_val = summary.max_val[0] - return dict( data=dict( min=min, max=max, mean=mean, sd=sd ) ) + return dict( data=dict( min=min_val, max=max_val, mean=mean, sd=sd ) ) def summarize_region( bbi, chrom, start, end, num_points ): ''' 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