Beispiel #1
0
 def __init__(self,
              pathin,
              cutoffs={
                  'A': 89.5,
                  'B': 79.5,
                  'C': 69.5,
                  'D': 59.5
              }):
     data, labels = txt_database._open_txt_file(pathin)
     txt_database.txt_database.__init__(self, data, labels)
     self.try_all_to_float()
     self.cutoffs = cutoffs
Beispiel #2
0
 def __init__(self, filepath, skipcols=None):
     data, labels = txt_database._open_txt_file(filepath, delim=',')
     self.data = data.astype(float)
     self.raw_labels = labels
     self.N_cols = len(labels)
     ch_nums = range(self.N_cols-1)
     ch_labels = ['ch_%i' % i for i in ch_nums]
     clean_labels = ['t'] + ch_labels
     self.labels = clean_labels
     inds = range(self.N_cols)
     self.col_inds = dict(zip(self.labels, inds))
     self.next_ind = -1
     self.map_cols_to_attr()
     self.ch_nums = ch_nums
     self.ch_labels = ch_labels
     self._process_data()
Beispiel #3
0
 def __init__(self, pathin):
     data, labels = txt_database._open_txt_file(pathin)
     txt_database.txt_database.__init__(self, data, labels)
     self.last_name_list = txt_mixin.txt_list(self.Last_Name)
     self.first_name_list = txt_mixin.txt_list(self.First_Name)
Beispiel #4
0
 def __init__(self, pathin):
     data, labels = txt_database._open_txt_file(pathin)
     txt_database.txt_database.__init__(self, data, labels)
     self.get_names()
     self.find_emails()
 def __init__(self, pathin, cutoffs={'A':89.5,'B':79.5,'C':69.5,'D':59.5}):
     data, labels = txt_database._open_txt_file(pathin)
     txt_database.txt_database.__init__(self, data, labels)
     self.try_all_to_float()
     self.cutoffs= cutoffs
 def __init__(self, pathin):
     data, labels = txt_database._open_txt_file(pathin)
     txt_database.txt_database.__init__(self, data, labels)
     self.last_name_list = txt_mixin.txt_list(self.Last_Name)
     self.first_name_list = txt_mixin.txt_list(self.First_Name)