Skip to content

Commit

Permalink
code climate errors pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
anacmontoya committed Jul 26, 2024
1 parent 8a78a50 commit 0388f76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/metpy/plots/declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -2137,7 +2137,6 @@ def _effect_map(self):
'TROF': None
}


def _color_map(self):
return {

Check warning on line 2141 in src/metpy/plots/declarative.py

View check run for this annotation

Codecov / codecov/patch

src/metpy/plots/declarative.py#L2141

Added line #L2141 was not covered by tests
'HIGH': self.HIGH_color,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0388f76

Please sign in to comment.