Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/m/o/modred-1.0.2/src/vectors.py   modred(Download)
    def _get(self):
        """Loads vector from path."""
        return util.load_array_text(self.vec_path)
    def _put(self, vec):
        """Saves vector to path."""

src/m/o/modred-1.0.2/tests/testutil.py   modred(Download)
                                mat = N.squeeze(mat)
                            util.save_array_text(mat, mat_path, delimiter=delimiter)
                            mat_read = util.load_array_text(mat_path, delimiter=delimiter,
                                is_complex=is_complex)
                            if squeeze:

src/m/o/modred-1.0.2/tests/testokid.py   modred(Download)
    def test_OKID(self):
        for case in ['SISO', 'SIMO', 'MISO', 'MIMO']:
            inputs = util.load_array_text(join(join(self.test_dir, case), 'inputs.txt'))
            outputs = util.load_array_text(join(join(self.test_dir, case), 'outputs.txt'))
            (num_inputs, nt) = inputs.shape
            Markovs_true = N.zeros((nt, num_outputs, num_inputs))
 
            temp = util.load_array_text(join(join(self.test_dir, case),
                'Markovs_Matlab_output1.txt'))
            temp = temp.reshape((num_inputs, -1))
            num_Markovs_OKID = temp.shape[1]
            Markovs_Matlab = N.zeros((num_Markovs_OKID, num_outputs, num_inputs))
 
            for iOut in range(num_outputs):
                data = util.load_array_text(join(join(
                    data = N.swapaxes(data, 0, 1)
                Markovs_Matlab[:,iOut,:] = data
                data = util.load_array_text(join(join(
                    self.test_dir, case), 'Markovs_true_output%d.txt'%(iOut+1)))
                if num_inputs > 1:

src/m/o/modred-1.0.2/tests/testera.py   modred(Download)
                        atol=0.5)
                    N.testing.assert_allclose(
                        util.load_array_text(A_path_computed), A)
                    N.testing.assert_allclose(
                        util.load_array_text(B_path_computed), B)
                    N.testing.assert_allclose(
                        util.load_array_text(C_path_computed), C)

src/m/o/modred-1.0.2/tests/testltigalerkinproj.py   modred(Download)
        LTI_proj.C_reduced = C.copy()
        LTI_proj.put_model(A_reduced_path, B_reduced_path, C_reduced_path)
        N.testing.assert_equal(util.load_array_text(A_reduced_path), A)
        N.testing.assert_equal(util.load_array_text(B_reduced_path), B)
        N.testing.assert_equal(util.load_array_text(C_reduced_path), C)

src/m/o/modred-1.0.2/tests/testpod.py   modred(Download)
        POD_load = PODHandles(None, verbosity=0)
        POD_load.get_decomp(eigen_vecs_path, eigen_vals_path)
        correlation_mat_loaded = util.load_array_text(correlation_mat_path)
 
        N.testing.assert_allclose(correlation_mat_loaded,