Skip to content

Getting this error when I run the code ‘ncp’ #1

@luochen1992

Description

@luochen1992

  File "D:/dev/ntf-school-master/ntf-school-master/ncp.py", line 75, in normalEqComb
    elif PassSet == None or np.all(PassSet):

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

so I change ' PassSet == None ' to ' PassSet is None '
then new error occured

  File "D:/dev/ntf-school-master/ntf-school-master/ncp.py", line 133, in column_group_sub
    col_falses = cols[(-vec).nonzero()[0]]

TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.

I change ‘-’ to ‘~’
it worked!

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