Skip to content

AttributeError: module 'numpy' has no attribute 'float128' in coord.py #698

@pbrotoisworo

Description

@pbrotoisworo

I just updated my MintPy and now I have this error where NumPy has no attribute float128.
It comes from this line:

if isinstance(coord_in, (float, np.float16, np.float32, np.float64, np.float128)):

I looked into it and it seems that float128 is not supported on Windows OS. I removed np.float128 from the line and my analysis works with no error.

See related Github issue from other repo for reference: winpython/winpython#613

If precision is still required up to float128 then here is a possible solution: quantumlib/Cirq#1511 (comment)

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