From b114b279116735be374869b6b6209e09e386b06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 12 Aug 2020 18:13:12 +0200 Subject: [PATCH] Underscores replace spaces for each part of the data files name --- tools/lib/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/data.py b/tools/lib/data.py index 421980d0..9588dd6b 100644 --- a/tools/lib/data.py +++ b/tools/lib/data.py @@ -112,13 +112,13 @@ class dataFileBase(object): molsoup=TexSoup(self.molecule) molcomp=list(molsoup.contents)[0] molfilename=self.molecule if isinstance(molcomp,str) else molcomp.args[0].value - molfilename=molfilename.lower().replace(" ","_") + molfilename=molfilename.lower() fileNameComp=[molfilename,self.method.name] if self.method.basis: fileNameComp.append(self.method.basis) if suffix: fileNameComp.append(suffix) - fileName="_".join(fileNameComp)+".dat" + fileName="_".join(fileNameComp).replace(" ","_")+".dat" file=subpath/fileName if not file.exists(): with file.open("w") as f: