Permalink
Browse files

Add error message to file check.

  • Loading branch information...
barneypotter24 committed Jan 31, 2019
1 parent c6196b1 commit 829c0e2c73692ff39e16d9d267bfbbb7f891f213
Showing with 2 additions and 0 deletions.
  1. +2 −0 tdb/vidrl_upload.py
@@ -32,13 +32,15 @@ def read_vidrl(path, fstem, assay_type):
# import glob
# flist = glob.glob(path + '/NIMR*csv') #BP
exten = [ os.path.isfile(path + fstem + ext) for ext in ['.xls', '.xlsm', '.xlsx'] ]

if True in exten:
ind = exten.index(True)
convert_xls_to_csv(path, fstem, ind)
fname = "data/tmp/%s.csv"%(fstem)
parse_vidrl_matrix_to_tsv(fname, path, assay_type)
else:
# logger.critical("Unable to recognize file extension of {}/{}".format(path,fstem))
print("Unable to recognize file {}/{}".format(path,fstem))
sys.exit()

def convert_xls_to_csv(path, fstem, ind):

0 comments on commit 829c0e2

Please sign in to comment.