Skip to content

Commit

Permalink
fix: ✨ flagging interpolator not up to date when data changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Mar 7, 2022
1 parent 990e0f4 commit 96c8ddb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions LoopStructural/interpolators/_geological_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def set_value_constraints(self, points):

self.data["value"] = points
self.n_i = points.shape[0]
self.up_to_date = False

def set_gradient_constraints(self, points):
"""
Expand All @@ -100,6 +101,8 @@ def set_gradient_constraints(self, points):
"""
self.n_g = points.shape[0]
self.data["gradient"] = points
self.up_to_date = False


def set_normal_constraints(self, points):
"""
Expand All @@ -114,6 +117,8 @@ def set_normal_constraints(self, points):
"""
self.n_n = points.shape[0]
self.data["normal"] = points
self.up_to_date = False


def set_tangent_constraints(self, points):
"""
Expand All @@ -127,12 +132,17 @@ def set_tangent_constraints(self, points):
"""
self.data["tangent"] = points
self.up_to_date = False


def set_interface_constraints(self, points):
self.data["interface"] = points
self.up_to_date = False


def set_inequality_constraints(self, points):
self.data["inequality"] = points
self.up_to_date = False

def get_value_constraints(self):
"""
Expand Down

0 comments on commit 96c8ddb

Please sign in to comment.