Skip to content

Commit 710c777

Browse files
FilippoOlivondem0
authored andcommitted
problem.input_pts takes into consideration also input_points coming from InputOutputCondition
1 parent 99f869e commit 710c777

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pina/problem/abstract_problem.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ def batching_dimension(self, value):
5757
@property
5858
def input_pts(self):
5959
to_return = {}
60-
for k, v in self.collector.data_collections.items():
61-
if 'input_points' in v.keys():
62-
to_return[k] = v['input_points']
60+
for cond_name, cond in self.conditions.items():
61+
if hasattr(cond, "input_points"):
62+
to_return[cond_name] = cond.input_points
63+
elif hasattr(cond, "domain"):
64+
to_return[cond_name] = self.discretised_domains[cond.domain]
6365
return to_return
6466

6567
def __deepcopy__(self, memo):

0 commit comments

Comments
 (0)