Skip to content

calcProteinInteractions() throws NumPy UFuncTypeError in ProDy 2.5.0 #2142

@HaleHasdemir

Description

@HaleHasdemir

Hi, I'm trying to follow the InSty tutorial with my pdb. But I have the following issue:

Calling calcProteinInteractions() causes a UFuncTypeError during salt bridge calculation:

File ~/ProDy/prody/atomic/select.py:1901, in Select._binop(self, sel, loc, tokens)
   1898 else:
   1899     # ndim must not be zero for in place operation
   1900     if ndim:
-> 1901         binop(left, right, left)
   1902     else:
   1903         left = binop(left, right)

UFuncTypeError: Cannot cast ufunc 'subtract' output from dtype('float64') to dtype('int64') with casting rule 'same_kind'

Environment:
ProDy version: 2.5.0 (installed from source)
NumPy version: 1.26.2
Python version: 3.11

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions