Closed marco-2023 closed 6 months ago
The make_promolecules fail for small fractional charges. See code example.
from atomdb import make_promolecule import numpy as np atnums = [7] charges = [0.1] atcoords = np.array([[0.0, 0.0, 0.0]]) # Build a promolecule promol = make_promolecule( atnums, atcoords, charges=charges, units="bohr", dataset="gaussian", )
The cause is in lines 620-623 of promolecules.py
promolecules.py
# Handle default multiplicity parameters if mults is None: # Force non-int charge to be integer here; will be overwritten below. mults = [MULTIPLICITIES[(atnum, charge)] for (atnum, charge) in zip(atnums, charges)]
The make_promolecules fail for small fractional charges. See code example.
The cause is in lines 620-623 of
promolecules.py