From 0323a23ab53b9dc7f36b7b9ca066e3bc78a90f36 Mon Sep 17 00:00:00 2001 From: Siddharth Shrivastava Date: Fri, 17 Apr 2020 15:04:06 +0530 Subject: [PATCH] update hdf5_handler --- prepare_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepare_data.py b/prepare_data.py index 00004ae..d930396 100755 --- a/prepare_data.py +++ b/prepare_data.py @@ -125,7 +125,7 @@ def load_patients_to_file(hdf5, pheno, derivatives): pheno_path = "./data/phenotypes/Phenotypic_V1_0b_preprocessed1.csv" pheno = load_phenotypes(pheno_path) - hdf5 = hdf5_handler("./data/abide.hdf5", "a") + hdf5 = hdf5_handler(bytes("./data/abide.hdf5",encoding="utf-8"), 'a') valid_derivatives = ["cc200", "aal", "ez", "ho", "tt", "dosenbach160"] derivatives = [derivative for derivative in arguments[""] if derivative in valid_derivatives]