1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-08-30 07:53:39 +02:00

Fixed basis bug

This commit is contained in:
Anthony Scemama 2020-09-24 10:07:25 +02:00
parent 101012938f
commit 04c75ab70c

View File

@ -94,13 +94,21 @@ process = subprocess.Popen(
out, err = process.communicate()
basis_raw, sym_raw, _ = out.decode().split("\n\n\n")
basis_split = basis_raw.split('\n')
# _ __
# |_) _. _ o _ (_ _ _|_
# |_) (_| _> | _> __) (/_ |_
#
basis_without_header = "\n".join(basis_raw.split("\n")[11:])
beginning = 0
for x in basis_split:
if x.startswith("Basis set"):
break
beginning += 1
beginning+=2
basis_without_header = "\n".join(basis_split[beginning:])
import re
l_basis_raw = re.split('\n\s*\n', basis_without_header)