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):
Italian Trulli
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: Rostlab/nalaf
Commit Name: f558b935a7d4dca8328c1201a26b762029695e8f
Time: 2015-06-17
Author: carsten.uhlig@gmail.com
File Name: demo.py
Class Name:
Method Name:


Project Name: rusty1s/pytorch_geometric
Commit Name: 2578ba8b844bdceb9333fa73a909b2aa9436f867
Time: 2020-06-30
Author: luca.cavallery@gmail.com
File Name: examples/pna.py
Class Name:
Method Name: test