Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JochenSiegWork committed Nov 25, 2024
1 parent 725cdb8 commit f12432a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,17 @@ def test_explicit_hydrogens(self) -> None:
self.assertIsInstance(explanations1[0].atom_weights, np.ndarray) # type: ignore[union-attr]
self.assertIsInstance(explanations2[0].atom_weights, np.ndarray) # type: ignore[union-attr]
self.assertIsInstance(explanations3[0].atom_weights, np.ndarray) # type: ignore[union-attr]
self.assertEqual(len(explanations1[0].atom_weights), 1) # type: ignore[union-attr]
self.assertEqual(len(explanations2[0].atom_weights), 1) # type: ignore[union-attr]
self.assertEqual(len(explanations3[0].atom_weights), 1) # type: ignore[union-attr]
self.assertEqual(len(explanations1[0].atom_weights), 1) # type: ignore
self.assertEqual(len(explanations2[0].atom_weights), 1) # type: ignore
self.assertEqual(len(explanations3[0].atom_weights), 1) # type: ignore

# test visualization
all_explanations = explanations1 + explanations2 + explanations3
for explanation in all_explanations:
self.assertTrue(explanation.is_valid())
image = structure_heatmap(
explanation.molecule,
explanation.atom_weights, # type: ignore[union-attr, arg-type]
explanation.atom_weights, # type: ignore
width=128,
height=128,
) # type: ignore[union-attr]
Expand Down

0 comments on commit f12432a

Please sign in to comment.