Skip to content

Buffer dtype mismatch, expected 'long' but got 'long long' #14

@malkwax

Description

@malkwax

hi, there is an error when I get nodal stress using NodalStress() method. I use the rst file in your closed issues "test_pyansys.rst".
I guess there is something wrong with numpy.int64 type.

the code is below:

stress = result.NodalStress(0)
Traceback (most recent call last):

  File "<ipython-input-12-6342d70f8bcd>", line 1, in <module>
    stress = result.NodalStress(0)

  File "C:\Users\zxmy\Anaconda3\lib\site-packages\pyansys\binary_reader.py", line 977, in NodalStress
    self.edge_idx.astype(np.int64))

  File "pyansys/cython/_rstHelper.pyx", line 158, in pyansys._rstHelper.LoadStress

ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'

Metadata

Metadata

Assignees

No one assigned

    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