From 7821b19850f1418921799fd5036d41f66bcc768f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Assun=C3=A7ao=20Jeshon?= Date: Wed, 5 Sep 2018 08:10:27 +0200 Subject: [PATCH] Make the code runnig for other os than windows --- explore_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explore_data.py b/explore_data.py index ddde63e..b101d63 100644 --- a/explore_data.py +++ b/explore_data.py @@ -141,7 +141,7 @@ def main(): # TODO warning for for the [:1] for filepath in filepaths[:1]: - filename = filepath.split("\\")[-1].split(".")[0] + filename = os.path.split(filepath)[-1].split(".")[0] raw_mat = scipy.io.loadmat(filepath) mat = raw_mat[filename][0][0][0][0] -- GitLab