예제 #1
0
    def importfile(self):
        """
        This function calls the imports.import_file_table method. 
        It imports both the rephasing and non-rephasing diagrams. 
        It determines the population time by looking at the filename.
        If ask_for_input == 1, it will ask the user for the phase and undersampling. Otherwise, you'll have to provide it separately.    
        """
        self.r[0], self.r_axis[0], self.r_axis[1] = imports.import_file_table(self.path + "ref_no_water", has_vert_axis=1, has_hor_axis=1, transpose=1)
        self.r[1], dump, dump = imports.import_file_table(self.path + "ref_with_water", has_vert_axis=1, has_hor_axis=1, transpose=1)
        self.r[0] = self.r[0][:,0]
        self.r[1] = self.r[1][:,0]

        self.h2o, dump, self.h2o_axis = imports.import_file_table(self.path + "H2O", has_vert_axis=1, has_hor_axis=0, transpose=0)
        self.h2o = (self.h2o.T)[0]
예제 #2
0
 def importfile(self, ask_for_input=1):
     """
     This function calls the imports.import_file_table method. 
     It imports both the rephasing and non-rephasing diagrams. 
     It determines the population time by looking at the filename.
     If ask_for_input == 1, it will ask the user for the phase and undersampling. Otherwise, you'll have to provide it separately.    
     """
     self.r[0], self.r_axis[2], self.r_axis[0] = imports.import_file_table(self.path + self.base_filename, has_vert_axis=1, has_hor_axis=1, transpose=0)
     self.r[1], dump, dump = imports.import_file_table(self.path + self.base_filename + "_NR", has_vert_axis=1, has_hor_axis=1, transpose=0)
     try:
         self.r_axis[1] = int(self.base_filename.rsplit("T")[1])
     except IndexError:
         print("ERROR (data2d, importfile): The population time can not be determined. This usually means there is no capital T in the filename.")
             
     if ask_for_input:   
         self.phase = int(raw_input("Phase: "))
         self.undersampling = int(raw_input("Undersampling: "))
예제 #3
0
 def importfile(self):
     self.r[0], self.r_axis[0], self.r_axis[1] = imports.import_file_table(self.path + self.base_filename + ".dat", has_vert_axis=1, has_hor_axis=1, transpose=1)
예제 #4
0
 def importfile(self):
     self.r[0], self.r_axis[0], self.r_axis[1] = imports.import_file_table(self.path + self.base_filename, has_vert_axis=0, has_hor_axis=1, transpose=0)
     self.r=self.r[0]