From e4e9b85512738f23c669e6656d1f178b99f3a19d Mon Sep 17 00:00:00 2001 From: Lauri Himanen Date: Tue, 5 Sep 2023 19:05:36 +0300 Subject: [PATCH] Fixed linting. --- dscribe/descriptors/soap.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dscribe/descriptors/soap.py b/dscribe/descriptors/soap.py index 34d7f4be..b925e03c 100644 --- a/dscribe/descriptors/soap.py +++ b/dscribe/descriptors/soap.py @@ -202,7 +202,6 @@ def __init__( # Setup the involved chemical species self.species = species - # Test that general settings are valid if sigma <= 0: raise ValueError( @@ -228,7 +227,6 @@ def __init__( "one of the following: {}".format(average, supported_average) ) - if not (weighting or r_cut): raise ValueError("Either weighting or r_cut need to be defined") if weighting: @@ -866,9 +864,7 @@ def compression(self, value): if mode not in supported_modes: raise ValueError( "Invalid compression mode '{}' given. Please use " - "one of the following: {}".format( - mode, supported_modes - ) + "one of the following: {}".format(mode, supported_modes) ) # Check species weighting