Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ffgg11 opened this issue Feb 11, 2025 · 1 comment

Comments

@ffgg11
Copy link

ffgg11 commented Feb 11, 2025

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?

@jurgen-lentz
Copy link
Collaborator

Yes, you can use self.max_for_white_score().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants