Skip to content

Commit

Permalink
removed print-statement in test
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Oct 31, 2023
1 parent a4e4b96 commit 03b1a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sisl/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,9 +1097,9 @@ def iter_block_shape(self, shape=None, iR=20, atoms: Optional[AtomsArgument]=Non
yield all_idx[0], all_idx[1]

if np.any(not_passed):
print(not_passed.nonzero()[0])
print(np.sum(not_passed), len(self))
raise SislError(f'{self.__class__.__name__}.iter_block_shape error on iterations. Not all atoms have been visited.')
not_passed = not_passed.nonzero()[0]
raise SislError(f"{self.__class__.__name__}.iter_block_shape error on iterations. Not all atoms have been visited "
f"{not_passed}")

def iter_block(self, iR: int=20, R: float=None,
atoms: Optional[AtomsArgument]=None,
Expand Down

0 comments on commit 03b1a10

Please sign in to comment.