Format Python code with psf/black push (#325)

* 🎨 Format Python code with psf/black
This commit is contained in:
github-actions[bot]
2024-08-12 18:30:46 +02:00
committed by GitHub
parent cce9876751
commit 5445559cb2
5 changed files with 85 additions and 56 deletions

View File

@@ -196,9 +196,10 @@ class AbstractProblem(metaclass=ABCMeta):
# check consistency location
locations_to_sample = [
condition for condition in self.conditions
if hasattr(self.conditions[condition], 'location')
]
condition
for condition in self.conditions
if hasattr(self.conditions[condition], "location")
]
if locations == "all":
# only locations that can be sampled
locations = locations_to_sample