Skip to content

Suggestion: not allow numpy and/or scipy imported before cytnx #765

@chiamin

Description

@chiamin

I realized that importing numpy and/or scipy before cytnx can lead to incorrect results without any clue. This is degerous and it should not be only a warning. I strongly suggest making it an Error to forbid importing numpy/scipy before cytnx.

In the long term, ideally, this dependency should be fixed.

I attached an example code to demonstrate different behaviors with/without importing numpy.

qn_complex_contract_norm_bug.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionSuggestion for current codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions