Skip to content

Commit

Permalink
MNT: Clean up some unused return values
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Nov 9, 2023
1 parent 54e04a2 commit 4e7c717
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/metpy/plots/_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def draw(self, renderer):
posy = self.convert_yunits(self.y)
pts = np.vstack((posx, posy)).T
pts = trans.transform(pts)
canvasw, canvash = renderer.get_canvas_width_height()
_, canvash = renderer.get_canvas_width_height()

gc = renderer.new_gc()
gc.set_foreground(self.get_color())
Expand All @@ -203,7 +203,7 @@ def draw(self, renderer):
continue

self._text = t # hack to allow self._get_layout to work
bbox, info, descent = self._get_layout(renderer)
_, info, _ = self._get_layout(renderer)
self._text = ''

for line, _, x, y in info:
Expand Down
3 changes: 1 addition & 2 deletions tests/calc/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def test_weighted_continuous_average_temperature():
data['temperature'],
height=data['height'],
depth=6000 * units('meter'))
# Commenting out since it won't run until the above can run without error
# assert_almost_equal(t, 279.3275828240889 * units('kelvin'), 7)
assert_almost_equal(t, 279.3275828240889 * units('kelvin'), 7)


def test_weighted_continuous_average_elevated():
Expand Down
3 changes: 2 additions & 1 deletion tools/nexrad_msgs/parse_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def process_msg18(fname):
if len(parts) == 8:
parts = parts[:6] + [parts[6] + parts[7]]

var_name, desc, typ, units, rng, prec, byte_range = parts
# var_name, desc, typ, units, rng, prec, byte_range
var_name, desc, typ, units, _, _, byte_range = parts
start, end = map(int, byte_range.split('-'))
size = end - start + 1
assert size >= 4
Expand Down

0 comments on commit 4e7c717

Please sign in to comment.