10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-23 21:03:54 +01:00

Fix space in file names

This commit is contained in:
Mickaël Véril 2019-11-12 19:47:23 +01:00
parent 8c4106582f
commit 210d727e84

View File

@ -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():