79d81d9993f7614fd55ce2402f98b29e9926fd7b,dev/tools/run_nose_tests_long_and_standalone.py,,,#,5
Before Change
import brian2
if not brian2.test(long_tests=True, test_standalone="cpp_standalone"):
sys.exit(1)
After Change
import numpy as np
// Run tests for float32 and float64
success = [brian2.test(long_tests=True, test_standalone="cpp_standalone", float_dtype=np.float32),
brian2.test(long_tests=True, test_standalone="cpp_standalone", float_dtype=np.float64)]
result = ["Tests for {} dtype: {}".format(dtype,
"passed" if status else "FAILED")
for status, dtype in zip(success, ["float32", "float64"])]
print("\t--\t".join(result))
if all(success):
print("OK: All tests passed successfully")
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: brian-team/brian2
Commit Name: 79d81d9993f7614fd55ce2402f98b29e9926fd7b
Time: 2018-08-24
Author: marcel.stimberg@inserm.fr
File Name: dev/tools/run_nose_tests_long_and_standalone.py
Class Name:
Method Name:
Project Name: jindongwang/transferlearning
Commit Name: e6b394f7340cbeee16bf4424cdf0367f80b60619
Time: 2018-12-22
Author: jindongwang@outlook.com
File Name: code/deep/finetune_AlexNet_ResNet/office31.py
Class Name:
Method Name:
Project Name: KaiyangZhou/deep-person-reid
Commit Name: cb0cfa3e197a6a6ea793645284c914a8c76a200c
Time: 2018-03-11
Author: k.zhou@qmul.ac.uk
File Name: train_img_model_xent.py
Class Name:
Method Name: main