Skip to content

Commit ff3fcfd

Browse files
authored
Patch v1.4.3 (#79)
* Adding failing unit test * Fixing issue #78 * Fixing issue #76 and tuning test for MacOS * Fixing bug in symmetry example * Updating function header comments * Updating example * Updating documentation * Simplifying CGF normalization * Fixing naming in gallery
1 parent 33ed976 commit ff3fcfd

22 files changed

+1631
-711
lines changed

docs/gallery.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@
33
Gallery
44
=======
55

6-
.. figure:: _static/img/gallery/MO_ch4_can.jpg
6+
.. figure:: _static/img/gallery/MO_ch4_CAN.jpg
77

88
Isosurface visualization of all canonical molecular orbitals of
99
methane computed at the Hartree-Fock level using a STO-3G basis set.
1010
The orbitals are shown as constant-value isosurfaces of the molecular
1111
wavefunction, illustrating the highly delocalized nature of the canonical
1212
eigenstates imposed by molecular symmetry.
1313

14-
.. figure:: _static/img/gallery/MO_ch4_fb.jpg
14+
.. figure:: _static/img/gallery/MO_ch4_FB.jpg
1515

1616
Isosurface visualization of Foster-Boys localized molecular orbitals of
1717
methane computed at the Hartree-Fock/STO-3G level. Orbital
1818
localization transforms the delocalized canonical states into chemically
1919
intuitive orbitals. For methane, this results in a quadruple degenerate
2020
set of state corresponding to the equivalent C-H bonds.
2121

22-
.. figure:: _static/img/gallery/MO_co_can.jpg
22+
.. figure:: _static/img/gallery/MO_co_CAN.jpg
2323

2424
Isosurface visualization of all canonical molecular orbitals of
2525
carbon monoxide computed at the Hartree-Fock level using a STO-3G basis set.
2626

27-
.. figure:: _static/img/gallery/MO_co_fb.jpg
27+
.. figure:: _static/img/gallery/MO_co_FB.jpg
2828

2929
Isosurface visualization of Foster-Boys localized molecular orbitals of
3030
carbon monoxide computed at the Hartree-Fock/STO-3G level. Orbital
3131
localization transforms the delocalized canonical states into chemically
3232
intuitive orbitals. For carbon monoxide, we see a threefold degenerate set
3333
of states correspond to the C-O triple bond.
3434

35-
.. figure:: _static/img/gallery/MO_dodecahedrane_can.jpg
35+
.. figure:: _static/img/gallery/MO_dodecahedrane_CAN.jpg
3636

3737
Isosurface visualization of all canonical molecular orbitals of
3838
dodecahedrane computed at the Hartree-Fock level using a STO-3G basis set.
3939
The orbitals are shown as constant-value isosurfaces of the molecular
4040
wavefunction, illustrating the highly delocalized nature of the canonical
4141
eigenstates imposed by molecular symmetry.
4242

43-
.. figure:: _static/img/gallery/MO_dodecahedrane_fb.jpg
43+
.. figure:: _static/img/gallery/MO_dodecahedrane_FB.jpg
4444

4545
Isosurface visualization of Foster-Boys localized molecular orbitals of
4646
dodecahedrane computed at the Hartree-Fock/STO-3G level. Orbital

docs/orbital_visualization.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ using three atoms and an explicit *up direction*. The three atoms uniquely
133133
define the plane, while the up direction removes the sign ambiguity of the plane
134134
normal.
135135

136-
The plane specification is given as a list:
136+
The plane specification is given as a **tuple**:
137137

138138
.. math::
139139
140-
[i, j, k, \vec{u}]
140+
(i, j, k, \vec{u})
141141
142142
where:
143143

@@ -159,7 +159,7 @@ the up direction:
159159
ContourPlotter.build_contourplot(
160160
res,
161161
'ch4_contour.png',
162-
plane=[0, 1, 2, up],
162+
plane=(0, 1, 2, up), # note: this needs to be a tuple
163163
sz=3.0,
164164
npts=101,
165165
nrows=3,

examples/ch4_contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
res = HF(mol, 'sto3g').rhf(verbose=True)
55

66
up = [0,0,1]
7-
ContourPlotter.build_contourplot(res, 'ch4.png', [0,1,2,up], 3, 101, 3, 3)
7+
ContourPlotter.build_contourplot(res, 'ch4.png', (0,1,2,up), 3, 101, 3, 3)

examples/ethylene_symap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def main():
104104
g.c /= np.sqrt(S)
105105

106106
# re-perform Hartree-Fock calculation using the symmetry adapted basis
107-
res = HF().rhf(mol, cgfs_symad, verbose=True)
107+
res = HF(mol, cgfs_symad).rhf(verbose=True)
108108
fig, ax = plt.subplots(1,1, dpi=144, figsize=(7,7))
109109
plot_matrix(ax, res['overlap'], symlabels, symlabels)
110110
plt.show()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module-path = "src"
4343
# ---------------------------------------------------------------------------
4444
[project]
4545
name = "pyqint"
46-
version = "1.4.2"
46+
version = "1.4.3"
4747
description = "Python package for evaluating integrals of Gaussian type orbitals"
4848
readme = "README.md"
4949
license = { text = "GPL-3.0-only" }

0 commit comments

Comments
 (0)