More Pythonic cleanups. NFC.
This commit is contained in:
@ -73,7 +73,7 @@ def __getDescriptors(bondFacet, source, destination):
|
||||
|
||||
|
||||
def __allOppositeMappings(mappings):
|
||||
return len([m for m in mappings if m.label != slipnet.opposite]) == 0
|
||||
return all(m.label == slipnet.opposite for m in mappings)
|
||||
|
||||
|
||||
def __structureVsStructure(structure1, weight1, structure2, weight2):
|
||||
|
||||
@ -197,7 +197,7 @@ class Group(WorkspaceObject):
|
||||
|
||||
def localSupport(self):
|
||||
numberOfSupporters = self.numberOfLocalSupportingGroups()
|
||||
if numberOfSupporters == 0.0:
|
||||
if numberOfSupporters == 0:
|
||||
return 0.0
|
||||
supportFactor = min(1.0, 0.6 ** (1 / (numberOfSupporters ** 3)))
|
||||
densityFactor = 100.0 * ((self.localDensity() / 100.0) ** 0.5)
|
||||
|
||||
Reference in New Issue
Block a user