Skip to content

Commit

Permalink
fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinjalali committed Aug 28, 2018
1 parent 703b8a6 commit 7fbb955
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions sklearn/cluster/tests/test_optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,65 +189,65 @@ def test_reach_dists():
# Expected values, matches 'RD' results from:
# http://chemometria.us.edu.pl/download/optics.py

v = [ np.inf, 7.59885069, 6.17890089, 1.05945707, 1.30847269,
3.69580892, 0.79365587, 1.48862487, 1.67837779, 3.14568804,
7.53854141, 2.72790669, 8.24245162, 2.0378668 , 6.23092657,
1.41644975, 6.82449182, 2.3740666 , 3.82029265, 3.1659918 ,
5.41312893, 7.41189078, 3.6499356 , 4.65838153, 4.7790213 ,
3.77505395, 5.41312893, 1.24740706, 1.24740706, 3.76568821,
3.76568821, 5.94047022, 2.50040119, 5.44241104, 3.76568821,
0.79365587, 4.51358931, 2.79521045, 3.76568821, 2.3740666 ,
4.36094583, 5.3200597 , 6.23092657, 1.1851792 , 4.36094583,
3.56833046, 1.95885905, 1.60343068, 4.35506869, 1.30644367,
1.03067612, 0.58566183, 0.8509913 , 0.78701264, 1.75672123,
1.647896 , 0.76893526, 0.59517811, 0.67697899, 0.62607998,
0.79112254, 0.80706656, 0.76240524, 0.73744965, 0.67697899,
0.66665535, 0.6786622 , 0.59517811, 0.67697899, 0.79112254,
0.58566183, 0.62607998, 4.12425707, 0.59517811, 0.76240524,
0.83682819, 0.78701264, 0.81416946, 0.79112254, 0.76240524,
0.79516239, 0.67697899, 0.59517811, 0.76240524, 1.29508353,
0.83412449, 0.75708599, 0.59517811, 0.76240524, 0.66665535,
0.76240524, 0.89652267, 0.90300374, 0.59517811, 0.73744965,
0.58566183, 0.78384875, 0.67697899, 0.62607998, 1.79315246,
0.88200422, 0.66665535, 2.0482758 , 1.05562986, 0.97287579,
0.76240524, 1.05945707, 0.88200422, 0.79365587, 0.79112254,
0.88200422, 0.76303359, 1.30876907, 0.7629389 , 0.88200422,
1.19273656, 0.88200422, 1.42757935, 2.58860441, 0.72822051,
0.88200422, 0.88200422, 1.96044868, 0.58566183, 1.99021141,
1.13371735, 1.03469971, 0.61358788, 1.81518036, 1.30876907,
1.0976403 , 0.88200422, 1.30876907, 0.80936808, 0.91629931,
2.64046804, 0.67697899, 0.88200422, 0.97287579, 1.25072302,
0.79365587, 1.36943228, 0.82840271, 1.48862487, 0.72439367,
0.88200422, 1.68717255, 0.79365587, 0.79365587, 0.7629389 ,
2.80341016, 1.5853267 , 1.48862487, 1.95007681, 1.52146026,
1.83591272, 1.2600627 , 1.25072302, 1.25072302, 1.25072302,
1.24740706, 1.48862487, 1.24740706, 3.53766973, 1.95885905,
0.7629389 , 0.7629389 , 3.56833046, 2.34116433, 2.53639304,
1.282933 , 1.2600627 , 1.24740706, 1.33097173, 1.56632179,
1.66211533, 0.91844338, 1.25852424, 1.83912019, 1.60343068,
1.56632179, 1.66011024, 1.60343068, 1.25072302, 1.5592943 ,
1.48862487, 1.48862487, 1.64533938, 0.88200422, 1.83591272,
2.34116433, 2.79897124, 1.21087988, 1.69485371, 2.07750488,
1.48862487, 1.30876907, 1.41644975, 2.41362097, 2.22219201,
6.82449182, 5.86214331, 7.52179844, 6.20734688, 5.3200597 ,
7.41189078, 1.99021141, 10.12563499, 4.5948987 , 12.493863 ,
6.20734688, 11.08001958, 0.96195202, 18.62694837, 1.30847269,
7.0559566 , 6.20734688, 4.36094583, 6.20734688, 6.20734688,
6.82449182, 0.93105834, 6.27263296, 8.24245162, 3.1659918 ,
5.52143272, 4.12425707, 10.79984612, 12.55260431, 1.14228938,
6.35782964, 1.30644367, 13.86060527, 5.94047022, 11.08001958,
9.96891342, 4.65113924, 12.3547993 , 11.84255723, 6.20734688,
8.53664632, 4.1253444 , 16.82829994, 8.1786272 , 0.91844338,
4.1253444 , 9.57370251, 17.84963742, 4.96798516, 3.80240412,
5.42876951, 8.1786272 , 1.99021141, 14.81182123, 15.9525836 ,
12.493863 , 18.22386404, 3.92572449, 9.57370251, 14.54063695,
4.53537202, 10.06701936, 5.90471515, 12.493863 , 21.99435576,
15.14654311, 8.54895489, 7.36169303, 1.48862487, 1.56632179,
8.13436918, 13.86060527, 1.30876907, 19.29062527, 8.71319171,
5.86214331, 7.17085401, 13.86060527, 13.41032703, 7.49252559,
15.00240034, 11.46569783, 4.15139784, 8.27349636, 7.59885069,
13.32055744, 8.27349636, 6.20734688, 5.94047022, 10.79984612,
12.24758945, 11.14464297, 2.29458767, 6.01813273, 20.81401082,
8.56541443, 5.3200597 , 6.9362395 , 1.25852424, 4.36094583]
v = [np.inf, 7.59885069, 6.17890089, 1.05945707, 1.30847269,
3.69580892, 0.79365587, 1.48862487, 1.67837779, 3.14568804,
7.53854141, 2.72790669, 8.24245162, 2.0378668, 6.23092657,
1.41644975, 6.82449182, 2.3740666, 3.82029265, 3.1659918,
5.41312893, 7.41189078, 3.6499356, 4.65838153, 4.7790213,
3.77505395, 5.41312893, 1.24740706, 1.24740706, 3.76568821,
3.76568821, 5.94047022, 2.50040119, 5.44241104, 3.76568821,
0.79365587, 4.51358931, 2.79521045, 3.76568821, 2.3740666,
4.36094583, 5.3200597, 6.23092657, 1.1851792, 4.36094583,
3.56833046, 1.95885905, 1.60343068, 4.35506869, 1.30644367,
1.03067612, 0.58566183, 0.8509913, 0.78701264, 1.75672123,
1.647896, 0.76893526, 0.59517811, 0.67697899, 0.62607998,
0.79112254, 0.80706656, 0.76240524, 0.73744965, 0.67697899,
0.66665535, 0.6786622, 0.59517811, 0.67697899, 0.79112254,
0.58566183, 0.62607998, 4.12425707, 0.59517811, 0.76240524,
0.83682819, 0.78701264, 0.81416946, 0.79112254, 0.76240524,
0.79516239, 0.67697899, 0.59517811, 0.76240524, 1.29508353,
0.83412449, 0.75708599, 0.59517811, 0.76240524, 0.66665535,
0.76240524, 0.89652267, 0.90300374, 0.59517811, 0.73744965,
0.58566183, 0.78384875, 0.67697899, 0.62607998, 1.79315246,
0.88200422, 0.66665535, 2.0482758, 1.05562986, 0.97287579,
0.76240524, 1.05945707, 0.88200422, 0.79365587, 0.79112254,
0.88200422, 0.76303359, 1.30876907, 0.7629389, 0.88200422,
1.19273656, 0.88200422, 1.42757935, 2.58860441, 0.72822051,
0.88200422, 0.88200422, 1.96044868, 0.58566183, 1.99021141,
1.13371735, 1.03469971, 0.61358788, 1.81518036, 1.30876907,
1.0976403, 0.88200422, 1.30876907, 0.80936808, 0.91629931,
2.64046804, 0.67697899, 0.88200422, 0.97287579, 1.25072302,
0.79365587, 1.36943228, 0.82840271, 1.48862487, 0.72439367,
0.88200422, 1.68717255, 0.79365587, 0.79365587, 0.7629389,
2.80341016, 1.5853267, 1.48862487, 1.95007681, 1.52146026,
1.83591272, 1.2600627, 1.25072302, 1.25072302, 1.25072302,
1.24740706, 1.48862487, 1.24740706, 3.53766973, 1.95885905,
0.7629389, 0.7629389, 3.56833046, 2.34116433, 2.53639304,
1.282933, 1.2600627, 1.24740706, 1.33097173, 1.56632179,
1.66211533, 0.91844338, 1.25852424, 1.83912019, 1.60343068,
1.56632179, 1.66011024, 1.60343068, 1.25072302, 1.5592943,
1.48862487, 1.48862487, 1.64533938, 0.88200422, 1.83591272,
2.34116433, 2.79897124, 1.21087988, 1.69485371, 2.07750488,
1.48862487, 1.30876907, 1.41644975, 2.41362097, 2.22219201,
6.82449182, 5.86214331, 7.52179844, 6.20734688, 5.3200597,
7.41189078, 1.99021141, 10.12563499, 4.5948987, 12.493863,
6.20734688, 11.08001958, 0.96195202, 18.62694837, 1.30847269,
7.0559566, 6.20734688, 4.36094583, 6.20734688, 6.20734688,
6.82449182, 0.93105834, 6.27263296, 8.24245162, 3.1659918,
5.52143272, 4.12425707, 10.79984612, 12.55260431, 1.14228938,
6.35782964, 1.30644367, 13.86060527, 5.94047022, 11.08001958,
9.96891342, 4.65113924, 12.3547993, 11.84255723, 6.20734688,
8.53664632, 4.1253444, 16.82829994, 8.1786272, 0.91844338,
4.1253444, 9.57370251, 17.84963742, 4.96798516, 3.80240412,
5.42876951, 8.1786272, 1.99021141, 14.81182123, 15.9525836,
12.493863, 18.22386404, 3.92572449, 9.57370251, 14.54063695,
4.53537202, 10.06701936, 5.90471515, 12.493863, 21.99435576,
15.14654311, 8.54895489, 7.36169303, 1.48862487, 1.56632179,
8.13436918, 13.86060527, 1.30876907, 19.29062527, 8.71319171,
5.86214331, 7.17085401, 13.86060527, 13.41032703, 7.49252559,
15.00240034, 11.46569783, 4.15139784, 8.27349636, 7.59885069,
13.32055744, 8.27349636, 6.20734688, 5.94047022, 10.79984612,
12.24758945, 11.14464297, 2.29458767, 6.01813273, 20.81401082,
8.56541443, 5.3200597, 6.9362395, 1.25852424, 4.36094583]

assert_array_almost_equal(clust.reachability_, np.array(v))

0 comments on commit 7fbb955

Please sign in to comment.