Skip to content

Commit 7b09bf1

Browse files
FilippoOlivodario-coscia
authored andcommitted
Additional fix in collector
1 parent d6d778d commit 7b09bf1

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

pina/collector.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ def __init__(self, problem):
3737
@property
3838
def full(self):
3939
"""
40-
Whether all conditions are ready to be passed to the data module.
41-
The collector is said to be full is all conditions have some entries
42-
in data_collection dict.
43-
44-
:return: True if all conditions are ready.
40+
Returns True if the collector is full. The collector is considered full
41+
if all conditions have entries in the data_collection dictionary.
42+
43+
:return: True if all conditions are ready, False otherwise.
4544
:rtype: bool
4645
"""
4746

@@ -50,17 +49,18 @@ def full(self):
5049
@full.setter
5150
def full(self, value):
5251
"""
53-
Set the full flag.
52+
Set the full variable.
5453
5554
:param bool value: The value to set the full property to.
5655
"""
56+
5757
check_consistency(value, bool)
5858
self._full = value
5959

6060
@property
6161
def data_collections(self):
6262
"""
63-
Return the data collections.
63+
Return the data collections (dictionary where data is stored).
6464
6565
:return: The data collections where the data is stored.
6666
:rtype: dict
@@ -116,7 +116,8 @@ def store_fixed_data(self):
116116
def store_sample_domains(self):
117117
"""
118118
Store inside data collections the sampled data of the problem. These
119-
comes from the conditions that require sampling.
119+
comes from the conditions that require sampling (e.g.
120+
DomainEquationCondition).
120121
"""
121122

122123
for condition_name in self.problem.conditions:

0 commit comments

Comments
 (0)