Black formatting collector

This commit is contained in:
FilippoOlivo
2025-03-12 09:39:49 +01:00
committed by Nicola Demo
parent 3ca503044e
commit 6c174dc6c6

View File

@@ -8,14 +8,14 @@ from .utils import check_consistency
class Collector: class Collector:
""" """
Collector class for retrieving data from different conditions in the Collector class for retrieving data from different conditions in the
problem. problem.
""" """
def __init__(self, problem): def __init__(self, problem):
""" """
Initialize the Collector class, by creating a hook between the collector Initialize the Collector class, by creating a hook between the collector
and the problem and initializing the data collections (dictionary where and the problem and initializing the data collections (dictionary where
data will be stored). data will be stored).
:param AbstractProblem problem: The problem to collect data from. :param AbstractProblem problem: The problem to collect data from.
@@ -114,7 +114,7 @@ class Collector:
Store inside data collections the sampled data of the problem. These Store inside data collections the sampled data of the problem. These
comes from the conditions that require sampling. comes from the conditions that require sampling.
""" """
for condition_name in self.problem.conditions: for condition_name in self.problem.conditions:
condition = self.problem.conditions[condition_name] condition = self.problem.conditions[condition_name]
if not hasattr(condition, "domain"): if not hasattr(condition, "domain"):