Commit 1aee41ae authored by E144069X's avatar E144069X

Fixed indentation error

parent 714dec79
......@@ -480,18 +480,18 @@ def formatMarseille(pathToZip):
if not os.path.exists("../data/{}/annotations/".format(dataset)):
os.path.makedirs("../data/{}/annotations/".format(dataset))
#Convert the xls files into csv files if it is not already done
if (len(glob.glob("../data/{}/*.csv".format(dataset))) - 1) < len(glob.glob("../data/{}/*.xls*".format(dataset))):
subprocess.call("libreoffice --headless --convert-to csv --outdir ../data/{}/ ../data/{}/*.xls*".format(dataset,dataset),shell=True)
#Convert the xls files into csv files if it is not already done
if (len(glob.glob("../data/{}/*.csv".format(dataset))) - 1) < len(glob.glob("../data/{}/*.xls*".format(dataset))):
subprocess.call("libreoffice --headless --convert-to csv --outdir ../data/{}/ ../data/{}/*.xls*".format(dataset,dataset),shell=True)
df = pd.read_csv("../data/{}/MRSGrossessesMirixlsx (1).xlsx".format(dataset),dtype=str,encoding = "ISO-8859-1",sep=",")
idColName = "PatientName"
df = pd.read_csv("../data/{}/MRSGrossessesMirixlsx (1).xlsx".format(dataset),dtype=str,encoding = "ISO-8859-1",sep=",")
idColName = "PatientName"
names = df[idColName].apply(preproc)
df = df[["Well","Well Description"]+list(labelDict.keys())]
df["Name"] = names
names = df[idColName].apply(preproc)
df = df[["Well","Well Description"]+list(labelDict.keys())]
df["Name"] = names
dfDict[csvPath] = df
dfDict[csvPath] = df
def main(argv=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment