Пример #1
0
    def testSetGet(self):
        """
        Tests using Jep.set(String, Object) for java NDArrays
        of the different primitive types.  Then uses
        Jep.get(String) to get a Java NDArray back and
        checks for equality/symmetry.

        Also checks that in Java, new NDArray(args) does not
        allow bad args through.
        """
        from tests.jep_pipe import build_java_process_cmd
        from tests.jep_pipe import jep_pipe

        jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpy'))
Пример #2
0
    def testSetGet(self):
        """
        Tests using Jep.set(String, Object) for java NDArrays
        of the different primitive types.  Then uses
        Jep.get(String) to get a Java NDArray back and
        checks for equality/symmetry.

        Also checks that in Java, new NDArray(args) does not
        allow bad args through.
        """
        from tests.jep_pipe import build_java_process_cmd
        from tests.jep_pipe import jep_pipe

        jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpy'))
Пример #3
0
 def test_numpy_array_to_string(self):
     jep_pipe(
         build_java_process_cmd('jep.test.numpy.TestNumpyArrayToString'))
Пример #4
0
 def test_numpy_prod_succeeds(self):
     jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpyProdShared'))
Пример #5
0
 def test_shared_modules(self):
     jep_pipe(build_java_process_cmd('jep.test.TestSharedModules'))
Пример #6
0
 def test_inits(self):
     jep_pipe(build_java_process_cmd('jep.test.TestPreInitVariables'))
Пример #7
0
 def test_get_bytearray(self):
     jep_pipe(build_java_process_cmd('jep.test.TestGetByteArray'))
Пример #8
0
 def test_get_collection_boxing(self):
     jep_pipe(build_java_process_cmd('jep.test.TestGetCollectionBoxing'))
Пример #9
0
 def test_compiledScript(self):
     jep_pipe(build_java_process_cmd('jep.test.TestCompiledScript'))
Пример #10
0
 def test_inits(self):
     jep_pipe(build_java_process_cmd('jep.test.TestPreInitVariables'))
Пример #11
0
 def test_numpy_array_to_string(self):
     jep_pipe(build_java_process_cmd(
         'jep.test.numpy.TestNumpyArrayToString'))
Пример #12
0
 def test_numpy_prod_succeeds(self):
     jep_pipe(build_java_process_cmd('jep.test.numpy.TestNumpyProdShared'))
Пример #13
0
 def test_shared_modules(self):
     jep_pipe(build_java_process_cmd('jep.test.TestSharedModules'))