Esempio n. 1
0
    def __init__(self, some_directory):
        """
        Accepts a directory path
        Uses a utility method to get a list of files in any directory under the 
        given directory
        If directory path is not valid, or file type not .txt,
        or no files found raises an exception
        Gets the file paths into a list and instantiates the main dataframe
        """

        self.file_list = ut.get_file_list(some_directory)
        self.write_path = os.path.join(ut.get_data_dir_path(some_directory), "dataset.csv")
        # print self.file_list
        #        for f in self.file_list:
        #            print f
        self.racesdataframe = pd.DataFrame()
Esempio n. 2
0
 def __init__(self, relevant_dir, experiment_design_dict): 
     self.data_dir_path = ut.get_data_dir_path(relevant_dir)
     #print self.data_dir_path
     self.results_write_file_path = os.path.join(self.data_dir_path, 'results.csv')
     self.experiment_design = experiment_design_dict