Format Python code with psf/black push (#325)
* 🎨 Format Python code with psf/black
This commit is contained in:
committed by
GitHub
parent
cce9876751
commit
5445559cb2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user