a8e6afface0671c36c01d6c3bffb2275d808e97b,nilmtk/utils.py,,dependencies_diagnostics,#,15
Before Change
output["Matplotlib version"] = matplotlib.__version__
except ImportError:
output["Matplotlib version"] = "Not found"
try:
import pandas as pd
output["Pandas version"] = pd.__version__
except ImportError:
output["Pandas version"] = "Not found"
try:
import sklearn as sklearn
output["Scikit-learn version"] = sklearn.__version__
except ImportError:
After Change
output["System version"] = "{}.{}".format(system_information.major,
system_information.minor)
PACKAGES = ["nilmtk", "nilm_metadata", "numpy", "matplotlib", "pandas", "sklearn"]
for package_name in PACKAGES:
key = package_name + " version"
try:
exec("import " + package_name)
except ImportError:
output[key] = "Not found"
else:
output[key] = eval(package_name + ".__version__")
return output
def timedelta64_to_secs(timedelta):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: nilmtk/nilmtk
Commit Name: a8e6afface0671c36c01d6c3bffb2275d808e97b
Time: 2014-11-27
Author: jack-list@xlk.org.uk
File Name: nilmtk/utils.py
Class Name:
Method Name: dependencies_diagnostics
Project Name: cryoem/eman2
Commit Name: afd4e3ef1c71c061639171f2f139ada354314593
Time: 2021-02-02
Author: shadowwalkersb@gmail.com
File Name: programs/e2boxer.py
Class Name: boxerTopaz
Method Name: setup_gui
Project Name: cve-search/cve-search
Commit Name: c14ff78f8c3d3d28efc1189bece369922d71ec72
Time: 2016-06-12
Author: mattoufootu@gmail.com
File Name: lib/Toolkit.py
Class Name:
Method Name: convertDateToDBFormat