From a61e9237d19158c5071d22ce4882db465bb4e045 Mon Sep 17 00:00:00 2001 From: Hojat Shirmard <30745811+Hojat-Shirmard@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:42:24 +1100 Subject: [PATCH] fixing property --- gplately/plot.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/gplately/plot.py b/gplately/plot.py index 648f915..599849e 100644 --- a/gplately/plot.py +++ b/gplately/plot.py @@ -1963,30 +1963,34 @@ def plot_topological_plate_boundaries(self, ax, color="black", **kwargs): **kwargs, ) - @append_docstring(GET_DATE_DOCSTRING.format("topologies")) - @validate_reconstruction_time + @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) + logger.debug("Returning ridge_transforms property.") return self.ridges + self.transforms def get_ridge_transforms(self, central_meridian=0.0, tessellate_degrees=None): """Create a GeoDataFrame containing geometries of reconstructed ridge transforms.""" + logger.debug("Getting reconstructed ridge transforms.") return self.get_feature( self.ridge_transforms, central_meridian=central_meridian, tessellate_degrees=tessellate_degrees ) - @validate_topology_availability("all topologies") - @append_docstring(PLOT_DOCSTRING.format("topologies")) + @validate_topology_availability("ridge transforms") @append_docstring(PLOT_DOCSTRING.format("ridge transforms")) def plot_ridge_transforms(self, ax, color="black", **kwargs): - """Plot reconstructed ridge transforms onto a map.""" + """Plot reconstructed ridge transforms onto a map.""" + logger.debug("Plotting reconstructed ridge transforms.") return self.plot_feature( ax, self.ridge_transforms, feature_name="ridge_transforms", - color=color, + edgecolor=color, **kwargs, ) \ No newline at end of file