From 0388f76edd38481a5251fcaefdb3782703974fa9 Mon Sep 17 00:00:00 2001 From: Ana Castaneda Date: Fri, 26 Jul 2024 12:40:42 -0600 Subject: [PATCH] code climate errors pt 2 --- src/metpy/plots/declarative.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/metpy/plots/declarative.py b/src/metpy/plots/declarative.py index 9289ec1b64..0d16b38503 100644 --- a/src/metpy/plots/declarative.py +++ b/src/metpy/plots/declarative.py @@ -2104,7 +2104,7 @@ class PlotSurfaceAnalysis(MetPyHasTraits): """ FRONT_linewidth = Union([Float()], default_value=1, - allow_none=True) + allow_none=True) TROF_linewidth.__doc__ = """Stroke width for front lines. A single floating point value representing the size of the stroke width. @@ -2137,7 +2137,6 @@ def _effect_map(self): 'TROF': None } - def _color_map(self): return { 'HIGH': self.HIGH_color, @@ -2257,7 +2256,7 @@ def _build(self): kwargs.setdefault('facecolor', 'none') kwargs.setdefault('crs', ccrs.PlateCarree()) kwargs.setdefault('path_effects', effect_map[feature]) - if feature =='TROF': + if feature == 'TROF': kwargs.setdefault('edgecolor', color_map[feature]) kwargs.setdefault('linestyle', self.TROF_linestyle) self.parent.ax.add_geometries([geo_obj], **kwargs)