Skip to content

Troubles with rbc_mesh.py and python 3 #1

Description

@mvm4

Hello, its 2024, and we try to use OpenRBC for our work with erythrocytes. Seems that we compiled openrbc, but generation of initial points with utils\rbc_mesh.py returns error:

Traceback (most recent call last):
  File "D:/msys64/home/mvm/src/OpenRBC-master/util/rbc_mesh.py", line 68, in <module>
    dx     = vert[ bond[:,0], : ] - vert[ bond[:,1], : ]
             ~~~~^^^^^^^^^^^^^^^^
IndexError: arrays used as indices must be of integer (or boolean) type

bond is indeed array with real, non-integer values, it is calculated as

bond   = vstack( ( e2i / n_vert, e2i % n_vert ) ).transpose()

where e2i is integer array, n_vert is integer, but e2i/n_vert clearly gives non-integer array. Python 3 is in use now, rbc_mesh.py was written for python 2, so the error should be due to some incompatibilities between python versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions