mirror of
https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local
synced 2024-08-24 21:41:44 +02:00
Add rought estimation of number of basis
This commit is contained in:
parent
377297deb7
commit
1729a48591
@ -77,8 +77,8 @@ if __name__ == '__main__':
|
||||
elts = arguments["--atom"]
|
||||
l = e.get_list_basis_available(elts)
|
||||
|
||||
for name, des in l:
|
||||
print name, "|", des
|
||||
for name, des, n in l:
|
||||
print name, "(",n,")","|", des
|
||||
|
||||
# _ _ _ _____ _ _
|
||||
# | | (_) | | | ___| | | |
|
||||
|
BIN
db/Gamess-us.db
BIN
db/Gamess-us.db
Binary file not shown.
@ -386,15 +386,13 @@ class EMSL_local:
|
||||
|
||||
conn = sqlite3.connect(self.db_path)
|
||||
c = conn.cursor()
|
||||
|
||||
if not elts:
|
||||
|
||||
c.execute("SELECT DISTINCT name,description from basis_tab")
|
||||
c.execute("""SELECT DISTINCT name,description, LENGTH(data)-LENGTH(REPLACE(data, X'0A', ''))
|
||||
FROM output_tab""")
|
||||
data = c.fetchall()
|
||||
|
||||
else:
|
||||
cmd = [
|
||||
"SELECT name,description FROM output_tab WHERE elt=?"] * len(elts)
|
||||
cmd = ["""SELECT name,description, LENGTH(data)-LENGTH(REPLACE(data, X'0A', ''))
|
||||
FROM output_tab WHERE elt=?"""] * len(elts)
|
||||
cmd = " INTERSECT ".join(cmd) + ";"
|
||||
|
||||
c.execute(cmd, elts)
|
||||
|
Loading…
Reference in New Issue
Block a user