def get_design_matrix(self):
     """
     Returns
     -------
     Design matrix with 3 columns, including the column of interest,
     the linear drift column, and the column of ones
     """
     if self.design is None:
         scene_path = dp.get_scene_csv()
         ss = ssm.SceneSlicer(scene_path)
         interest_col = ss.get_scene_slices()[self.interest_col_ind]
         n_trs = self.data.shape[-1]
         design = np.ones((n_trs, 3))
         design[:, 1] = np.linspace(-1, 1, n_trs)
         design[:, 2] = interest_col[NUM_OFFSET_VOLUMES:NUM_OFFSET_VOLUMES+n_trs]
         self.design = design
     return self.design
 def get_design_matrix(self):
     """
     Returns
     -------
     Design matrix with 3 columns, including the column of interest,
     the linear drift column, and the column of ones
     """
     if self.design is None:
         scene_path = dp.get_scene_csv()
         ss = ssm.SceneSlicer(scene_path)
         interest_col = ss.get_scene_slices()[self.interest_col_ind]
         n_trs = self.data.shape[-1]
         design = np.ones((n_trs, 3))
         design[:, 1] = np.linspace(-1, 1, n_trs)
         design[:, 2] = interest_col[NUM_OFFSET_VOLUMES:NUM_OFFSET_VOLUMES +
                                     n_trs]
         self.design = design
     return self.design
 def get_design_matrix(self):
     """
     Returns
     -------
     Design matrix with 3 columns, including the column of interest,
     the linear drift column, and the column of ones
     """
     if self.design is None:
         scene_path = dp.get_scene_csv()
         ss = ssm.SceneSlicer(scene_path)
         if self.interest_col_str == "int-ext":
             interest_col_ind = 1
         elif self.interest_col_str == "day-night":
             interest_col_ind = 0
         else:
             print("Incorrect interest column name: please use either 'int-ext' or 'day-night'")
         interest_col = ss.get_scene_slices()[interest_col_ind]
         n_trs = self.data.shape[-1]
         design = np.ones((n_trs, 3))
         design[:, 1] = np.linspace(-1, 1, n_trs)
         design[:, 2] = interest_col[NUM_OFFSET_VOLUMES:]
         self.design = design
     return self.design