|
1 | 1 | import math |
| 2 | + |
2 | 3 | import numpy as np |
3 | 4 |
|
4 | 5 | import matplotlib.units as units |
@@ -32,7 +33,6 @@ def __init__(self, fn_name, obj): |
32 | 33 | self.target = obj.proxy_target |
33 | 34 |
|
34 | 35 | def __call__(self, *args): |
35 | | - #print 'passthrough', self.target, self.fn_name |
36 | 36 | fn = getattr(self.target, self.fn_name) |
37 | 37 | ret = fn(*args) |
38 | 38 | return ret |
@@ -177,7 +177,6 @@ def get_compressed_copy(self, mask): |
177 | 177 | return TaggedValue(new_value, self.unit) |
178 | 178 |
|
179 | 179 | def convert_to(self, unit): |
180 | | - #print 'convert to', unit, self.unit |
181 | 180 | if (unit == self.unit or not unit): |
182 | 181 | return self |
183 | 182 | new_value = self.unit.convert_value_to(self.value, unit) |
@@ -246,8 +245,6 @@ def get_conversion_fn(self, unit): |
246 | 245 | return self.conversions[unit] |
247 | 246 |
|
248 | 247 | def convert_value_to(self, value, unit): |
249 | | - #print 'convert value to: value ="%s", unit="%s"'%(value, type(unit)), |
250 | | - #self.conversions |
251 | 248 | conversion_fn = self.conversions[unit] |
252 | 249 | ret = conversion_fn(value) |
253 | 250 | return ret |
@@ -348,7 +345,6 @@ def axisinfo(unit, axis): |
348 | 345 | def convert(val, unit, axis): |
349 | 346 | if units.ConversionInterface.is_numlike(val): |
350 | 347 | return val |
351 | | - #print 'convert checking iterable' |
352 | 348 | if iterable(val): |
353 | 349 | return [thisval.convert_to(unit).get_value() for thisval in val] |
354 | 350 | else: |
|
0 commit comments