Skip to content

AttributeError: 'pygcgopt.gcg.PartialDecomposition' object has no attribute 'maxForWhiteScore'. Did you mean: 'max_for_white_score'? #38

@ffgg11

Description

@ffgg11

Hi, PyGCGOpt support team. I am testing PyGCGOpt. But I encountered the following issue:

Exception has occurred: AttributeError
'pygcgopt.gcg.PartialDecomposition' object has no attribute 'maxForWhiteScore'
File "C:\Users~\Desktop\PyGCGOpt-master\src\pygcgopt\decomposition.pxi", line 1433, in pygcgopt.gcg.PartialDecomposition.repr
return f"<PartialDecomposition: nBlocks={self.getNBlocks()}, nMasterConss={self.getNMasterconss()}, nMasterVars={self.getNMastervars()}, nLinkingVars={self.getNLinkingvars()}, maxForWhiteScore={self.maxForWhiteScore()}>"
File "C:\Users~\Desktop\PyGCGOpt-master\PCG_test.py", line 72, in
print(decomps)
AttributeError: 'pygcgopt.gcg.PartialDecomposition' object has no attribute 'maxForWhiteScore'

I have checked the file decomposition.pxi and found that there is no variable or method called maxForWhiteScore. However, there is a similar method called self.max_for_white_score().

So, how should I fix this bug?

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