Skip to content

Commit

Permalink
Fixed linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauri-codes committed Sep 5, 2023
1 parent 8646d72 commit e4e9b85
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dscribe/descriptors/soap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4e9b85

Please sign in to comment.