Clean some dead code in __calculateIntraStringHappiness.
Indeed, it's dead in the Java version too.
This commit is contained in:
@ -66,13 +66,8 @@ class WorkspaceObject(WorkspaceStructure):
|
|||||||
return 100.0
|
return 100.0
|
||||||
if self.group:
|
if self.group:
|
||||||
return self.group.totalStrength
|
return self.group.totalStrength
|
||||||
bondStrength = 0.0
|
bondStrength = sum(bond.totalStrength for bond in self.bonds)
|
||||||
for bond in self.bonds:
|
return bondStrength / 6.0
|
||||||
bondStrength += bond.totalStrength
|
|
||||||
divisor = 6.0
|
|
||||||
if self.spansString(): # then we have already returned
|
|
||||||
divisor = 3.0
|
|
||||||
return bondStrength / divisor
|
|
||||||
|
|
||||||
def __calculateRawImportance(self):
|
def __calculateRawImportance(self):
|
||||||
"""Calculate the raw importance of this object.
|
"""Calculate the raw importance of this object.
|
||||||
|
|||||||
Reference in New Issue
Block a user