Skip to content

Commit

Permalink
Fix tests for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed May 30, 2024
1 parent 839ac75 commit 3c62cf5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/chemfiles/residue.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __iter__(self):
yield self[i]

def __repr__(self):
return "[" + ", ".join([i.__repr__() for i in self]) + "]"
return "[" + ", ".join([str(int(i)) for i in self]) + "]"

def append(self, atom):
"""Add the atom index ``atom`` in the :py:class:`Residue`."""
Expand Down
1 change: 0 additions & 1 deletion tests/residue.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import copy
import unittest

import numpy as np
from _utils import remove_warnings

from chemfiles import ChemfilesError, Residue
Expand Down

0 comments on commit 3c62cf5

Please sign in to comment.