9cb90e08e6feef5b0fd3f6c57128787bcdb85f1e,lib/matplotlib/testing/jpl_units/EpochConverter.py,EpochConverter,convert,#Any#Any#Any#,84
Before Change
isNotEpoch = True
isDuration = False
if np.iterable(value) and not isinstance(value, str) :
if len(value) == 0:
return []
else:
return [EpochConverter.convert(x, unit, axis) for x in value]
if isinstance(value, U.Epoch):
isNotEpoch = False
elif isinstance(value, U.Duration):
isDuration = True
if (isNotEpoch and not isDuration and
units.ConversionInterface.is_numlike(value)):
return value
After Change
// Delay-load due to circular dependencies.
import matplotlib.testing.jpl_units as U
if not cbook.is_scalar_or_string(value) :
return [EpochConverter.convert(x, unit, axis) for x in value]
if (units.ConversionInterface.is_numlike(value)
and not isinstance(value, (U.Epoch, U.Duration))):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: matplotlib/matplotlib
Commit Name: 9cb90e08e6feef5b0fd3f6c57128787bcdb85f1e
Time: 2019-05-20
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/testing/jpl_units/EpochConverter.py
Class Name: EpochConverter
Method Name: convert
Project Name: matplotlib/matplotlib
Commit Name: 9cb90e08e6feef5b0fd3f6c57128787bcdb85f1e
Time: 2019-05-20
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/testing/jpl_units/UnitDblConverter.py
Class Name: UnitDblConverter
Method Name: convert
Project Name: matplotlib/matplotlib
Commit Name: 7b0414eaab4b9e50230b5b0eabff1593266fc169
Time: 2018-08-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/sankey.py
Class Name: Sankey
Method Name: add