message: Made the code a bit more PEP8 compliant.
diff: @@ -158,6 +158,7 @@ class CoulombMatrixEigenSpectrumTests(unittest.TestCase):
  # Test that array is zero-padded
  self.assertTrue(np.array_equal(cm[len(H2O):], [0, 0]))
  +
  class RandomCoulombMatrixTests(unittest.TestCase):
  def test_constructor(self):
  @@ -166,7 +167,6 @@ class RandomCoulombMatrixTests(unittest.TestCase):
  with self.assertRaises(ValueError):
  CoulombMatrix(n_atoms_max=5, permutation="random", sigma=None)
  -
  def test_number_of_features(self):
  """Tests that the reported number of features is correct.
  """
  @@ -175,20 +175,21 @@ class RandomCoulombMatrixTests(unittest.TestCase):
  self.assertEqual(n_features, 25)
  def test_norm_vector(self):
  - """Tests if the attribute norm_vector is written and used correctly"""
  + """Tests if the attribute norm_vector is written and used correctly
  + """
  desc = CoulombMatrix(n_atoms_max=5, permutation="random", sigma=100, flatten=False)
  cm = desc.create(H2O)
  self.assertEqual(len(cm), 5)
  - # the norm_vector is not zero padded in this implementation. All zero-padding
  + # The norm_vector is not zero padded in this implementation. All zero-padding
  # is done at the end after randomly sorting
  self.assertEqual(len(desc.norm_vector), 3)
  cm = desc.create(H2O)
  self.assertEqual(len(cm), 5)
  -
  def test_distribution(self):
  - """ Tests if the random sorting obeys a gaussian distribution. Can rarely fail when everything is OK.
  + """ Tests if the random sorting obeys a gaussian distribution. Can
  + rarely fail when everything is OK.
  """
  desc = CoulombMatrix(n_atoms_max=5, permutation="random", sigma=100, flatten=False)
  cm = desc.create(HHe)
  @@ -205,9 +206,9 @@ class RandomCoulombMatrixTests(unittest.TestCase):
  self.assertTrue(expectation * 0.90 <= count <= expectation * 1.1)
  -
  def test_match_with_sorted(self):
  - """Tests if sorting the random coulomb matrix results in the same as the sorted coulomb matrix
  + """Tests if sorting the random coulomb matrix results in the same as
  + t<F2>he sorted coulomb matrix
  """
  desc = CoulombMatrix(n_atoms_max=5, permutation="random", sigma=100, flatten=False)
  rcm = desc.create(H2O)
  @@ -221,11 +222,6 @@ class RandomCoulombMatrixTests(unittest.TestCase):
  self.assertTrue(np.array_equal(scm, srcm))
  -
  -
  -
  -
  -
  if __name__ == '__main__':
  suites = []
  suites.append(unittest.TestLoader().loadTestsFromTestCase(CoulombMatrixTests))
  