Beispiel #1
0
 def setUp(self):
     from scipy.io import loadmat
     self.mat_data1 = \
         loadmat(os.path.join(nts.get_test_data_dir(), 'restrict_ts_data_1.mat'))
     self.mat_data_left = \
         loadmat(os.path.join(nts.get_test_data_dir(), 'restrict_ts_data_2.mat'))
     self.mat_data_right = \
         loadmat(os.path.join(nts.get_test_data_dir(), 'restrict_ts_data_3.mat'))
Beispiel #2
0
    def setUp(self):
        from scipy.io import loadmat
        self.mat_data1 = loadmat(os.path.join(nts.get_test_data_dir(), 'interval_set_data_1.mat'))

        # note that data are n x 1 here, need to be converted to 1-D in constructor
        self.a1 = self.mat_data1['a1']
        self.b1 = self.mat_data1['b1']
        self.int1 = nts.IntervalSet(self.a1, self.b1, expect_fix=True)

        self.a2 = self.mat_data1['a2']
        self.b2 = self.mat_data1['b2']
        self.int2 = nts.IntervalSet(self.a2, self.b2, expect_fix=True)
Beispiel #3
0
    def setUp(self):
        from scipy.io import loadmat
        self.mat_data1 = loadmat(
            os.path.join(nts.get_test_data_dir(), 'interval_set_data_1.mat'))

        self.a1 = self.mat_data1['a1'].ravel()
        self.b1 = self.mat_data1['b1'].ravel()
        self.int1 = nts.IntervalSet(self.a1, self.b1, expect_fix=True)

        self.a2 = self.mat_data1['a2'].ravel()
        self.b2 = self.mat_data1['b2'].ravel()
        self.int2 = nts.IntervalSet(self.a2, self.b2, expect_fix=True)

        self.tsd_t = self.mat_data1['t'].ravel()
        self.tsd_d = self.mat_data1['d'].ravel()
        self.tsd = nts.Tsd(self.tsd_t, self.tsd_d)
Beispiel #4
0
    def setUp(self):
        from scipy.io import loadmat
        self.mat_data1 = loadmat(os.path.join(nts.get_test_data_dir(),
            'interval_set_data_dropmerge1.mat'))

        # note that data are n x 1 here, need to be converted to 1-D in constructor
        self.a1 = self.mat_data1['a1'].ravel()
        self.b1 = self.mat_data1['b1'].ravel()
        self.int1 = nts.IntervalSet(self.a1, self.b1, expect_fix=True)

        self.a1_drop = self.mat_data1['a_i1_drop'].ravel()
        self.b1_drop = self.mat_data1['b_i1_drop'].ravel()
        self.int1_drop = nts.IntervalSet(self.a1_drop, self.b1_drop, expect_fix=True)

        self.a1_merge = self.mat_data1['a_i1_merge'].ravel()
        self.b1_merge = self.mat_data1['b_i1_merge'].ravel()
        self.int1_merge = nts.IntervalSet(self.a1_merge, self.b1_merge, expect_fix=True)
Beispiel #5
0
 def setUp(self):
     from scipy.io import loadmat
     self.mat_data1 = loadmat(
         os.path.join(nts.get_test_data_dir(), 'interval_set_data_1.mat'))
     self.tsd_t = self.mat_data1['t'].ravel()
     self.tsd_d = self.mat_data1['d'].ravel()