Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Commit

Permalink
PEP8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Apr 26, 2014
1 parent c2415da commit 56fe742
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion calculate/tests.py
Expand Up @@ -682,7 +682,7 @@ def test_variation_coefficient(self):
6.442049363362563
)
self.assertEqual(
calculate.variation_coefficient(range(1,100000)),
calculate.variation_coefficient(range(1, 100000)),
0.5773444956580661
)
self.assertRaises(
Expand Down
6 changes: 4 additions & 2 deletions calculate/variation_coefficient.py
@@ -1,9 +1,10 @@
import calculate


def variation_coefficient(data_list):
"""
Accepts a list of values and returns the variation coefficient,
which is a normalized measure of the distribution.
which is a normalized measure of the distribution.
This is the sort of thing you can use to compare the standard deviation
of sets that are measured in different units.
Expand All @@ -19,7 +20,8 @@ def variation_coefficient(data_list):
h3. Documentation
* "coefficient of variation":http://en.wikipedia.org/wiki/Coefficient_of_variation
* "coefficient of variation":http://en.wikipedia.org/wiki/\
Coefficient_of_variation
"""
# Convert all the values to floats and test to make sure
# there aren't any strings in there
Expand Down

0 comments on commit 56fe742

Please sign in to comment.