Skip to content

Commit

Permalink
Replace Automatic Update with Explicit Time Validation in ridge_trans…
Browse files Browse the repository at this point in the history
…forms
  • Loading branch information
Hojat-Shirmard committed Nov 25, 2024
1 parent a61e923 commit d16b5de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gplately/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1964,12 +1964,12 @@ def plot_topological_plate_boundaries(self, ax, color="black", **kwargs):
)

@property
@append_docstring(GET_DATE_DOCSTRING.format("ridge transforms"))
def ridge_transforms(self):
"""Combine ridges and transforms into one feature set."""
if self._topological_plate_boundaries is None:
logger.debug("Accessing ridge transforms - updating topological plate boundaries.")
self.update_time(self.time)
if self.time is None:
raise ValueError(
"No topologies have been resolved. Set `PlotTopologies.time` to construct them."
)
logger.debug("Returning ridge_transforms property.")
return self.ridges + self.transforms

Expand Down

0 comments on commit d16b5de

Please sign in to comment.