8000 Remove commented out code · matplotlib/matplotlib@e9a4db3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9a4db3

Browse files
committed
Remove commented out code
1 parent 936576b commit e9a4db3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/units/basic_units.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import math
2+
23
import numpy as np
34

45
import matplotlib.units as units
@@ -32,7 +33,6 @@ def __init__(self, fn_name, obj):
3233
self.target = obj.proxy_target
3334

3435
def __call__(self, *args):
35-
#print 'passthrough', self.target, self.fn_name
3636
fn = getattr(self.target, self.fn_name)
3737
ret = fn(*args)
3838
return ret
@@ -177,7 +177,6 @@ def get_compressed_copy(self, mask):
177177
return TaggedValue(new_value, self.unit)
178178

179179
def convert_to(self, unit):
180-
#print 'convert to', unit, self.unit
181180
if (unit == self.unit or not unit):
182181
return self
183182
new_value = self.unit.convert_value_to(self.value, unit)
@@ -246,8 +245,6 @@ def get_conversion_fn(self, unit):
246245
return self.conversions[unit]
247246

248247
def convert_value_to(self, value, unit):
249-
#print 'convert value to: value ="%s", unit="%s"'%(value, type(unit)),
250-
#self.conversions
251248
conversion_fn = self.conversions[unit]
252249
ret = conversion_fn(value)
253250
return ret
@@ -348,7 +345,6 @@ def axisinfo(unit, axis):
348345
def convert(val, unit, axis):
349346
if units.ConversionInterface.is_numlike(val):
350347
return val
351-
#print 'convert checking iterable'
352348
if iterable(val):
353349
return [thisval.convert_to(unit).get_value() for thisval in val]
354350
else:

0 commit comments

Comments
 (0)
0