Skip to content

Commit

Permalink
Numpy deprecation fix, closes #248
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashopf committed May 12, 2023
1 parent 9d34d5e commit 5b3b3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evcouplings/compare/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def _get_range(object_counts):
# store explicit information about composition of residues
def _group_info(field):
return np.array(
[x[field] for x in mmtf.group_list]
[x[field] for x in mmtf.group_list], dtype=np.object_
)

# three and one letter code names of different groups
Expand Down Expand Up @@ -589,7 +589,7 @@ def get_chain(self, chain, model=0):
np.array([
np.arange(self.first_residue_index[i], self.last_residue_index[i])
for i in target_chain_indeces
])
], dtype=np.object_)
)

# chain indeces and identifiers for all residues
Expand Down

0 comments on commit 5b3b3f0

Please sign in to comment.