Skip to content

Commit

Permalink
fix: ⚡ flag not uptodate when build arguments change
Browse files Browse the repository at this point in the history
  • Loading branch information
Lachlan Grose committed Apr 27, 2022
1 parent c8d73c5 commit 6f80029
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def build_arguments(self):
def build_arguments(self, build_arguments):
# self._build_arguments = {}
for k, i in build_arguments.items():
self._build_arguments[k] = i
if i != self._build_arguments.get(k, None):
self._build_arguments[k] = i
## if build_arguments change then flag to reinterpolate
self._up_to_date = False

def update(self):
self.build(**self.build_arguments)
Expand Down Expand Up @@ -516,7 +519,7 @@ def build(self, fold=None, fold_weights={}, data_region=None, **kwargs):
-------
"""

# self.get_interpolator(**kwargs)
self.add_data_to_interpolator(**kwargs)
if data_region is not None:
xyz = self.interpolator.get_data_locations()
Expand Down

0 comments on commit 6f80029

Please sign in to comment.