Skip to content

Commit 596e59f

Browse files
committed
fix: evaluate gradient for structural frame calls interpolator, now working
1 parent 3d4d90f commit 596e59f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LoopStructural/modelling/features/_structural_frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def evaluate_gradient(self, pos, i=None, ignore_regions=False):
151151
152152
"""
153153
if i is not None:
154-
return self.features[i].support.evaluate_gradient(pos, ignore_regions=ignore_regions)
155-
return self.features[0].support.evaluate_gradient(pos, ignore_regions=ignore_regions)
154+
return self.features[i].interpolator.evaluate_gradient(pos)
155+
return self.features[0].interpolator.evaluate_gradient(pos)
156156

157157
def get_data(self, value_map: Optional[dict] = None) -> List[Union[ValuePoints, VectorPoints]]:
158158
"""Return the data associated with the features in the

0 commit comments

Comments
 (0)