From 210d727e84813dcd3149e26c5e136073df17aace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 12 Nov 2019 19:47:23 +0100 Subject: [PATCH] Fix space in file names --- tools/lib/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/data.py b/tools/lib/data.py index d22ad74e..bb98aec7 100644 --- a/tools/lib/data.py +++ b/tools/lib/data.py @@ -69,7 +69,7 @@ class dataFileBase(object): subpath=datadir/self.GetFileType().name.lower() if not subpath.exists(): subpath.mkdir() - file=subpath/"{}_{}_{}.dat".format(self.molecule.lower(),self.method.name,self.method.basis) + file=subpath/"{}_{}_{}.dat".format(self.molecule.lower().replace(" ","_"),self.method.name,self.method.basis) if not file.exists(): with file.open("w") as f: for key,value in self.getMetadata().items():