def find_interpreted_ages(self, identifiers, repositories): ias = [] for idn in identifiers: path = find_interpreted_age_path(idn, repositories) if path: obj = dvc_load(path) name = obj.get('name') ias.append(InterpretedAgeRecordView(idn, path, name)) return ias
except AttributeError, e: # print e, item raise DVCException(item) # defaults def _db_default(self): return DVCDatabase(kind='mysql', username='******', password='******', host='localhost', name='pychronmeta') def _meta_repo_default(self): return MetaRepo() if __name__ == '__main__': paths.build('_dev') idn = '24138' exps = ['Irradiation-NM-272'] print find_interpreted_age_path(idn, exps) # d = DVC(bind=False) # with open('/Users/ross/Programming/githubauth.txt') as rfile: # usr = rfile.readline().strip() # pwd = rfile.readline().strip() # d.github_user = usr # d.github_password = pwd # d.organization = 'NMGRLData' # d.add_experiment('Irradiation-NM-273') # ============= EOF =============================================