Skip to content

Commit

Permalink
Commented out the psi4 function, added IGNORE into sphinx and psi4 fu…
Browse files Browse the repository at this point in the history
…nction to skip it during doc making
  • Loading branch information
TL231 committed Dec 17, 2023
1 parent ef8417a commit 381f5fa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import sys

from recommonmark.transform import AutoStructify
from sphinx.ext.autodoc import between

sys.path.insert(0, os.path.abspath(".."))

Expand Down Expand Up @@ -133,6 +134,10 @@ def setup(app):
app.add_config_value("recommonmark_config", {"enable_eval_rst": True}, True)
app.add_transform(AutoStructify)
app.add_css_file("css/style.css")
# Register a sphinx.ext.autodoc.between listener to ignore everything
# between lines that contain the word IGNORE
app.connect('autodoc-process-docstring', between('^.*IGNORE.*$', exclude=True))
return app


html_show_sourcelink = False
4 changes: 4 additions & 0 deletions lih.xyz
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2
0 1
Li 0.0 0.0 0.0
H 0.0 0.0 1.2
14 changes: 12 additions & 2 deletions src/qibochem/driver/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,23 @@ def run_pyscf(self, max_scf_cycles=50):
tei = np.einsum("pqrs->prsq", eri4)
self.tei = tei

"""
IGNORE
def run_psi4(self, output=None):
"""
IGNORE
"""
"""
IGNORE
Run a Hartree-Fock calculation with PSI4 to obtain the molecular quantities and
molecular integrals
Args:
output: Name of PSI4 output file. ``None`` suppresses the output on non-Windows systems,
and uses ``psi4_output.dat`` otherwise
"""
IGNORE
"""
"""
IGNORE
import psi4 # pylint: disable=import-error
# PSI4 input string
Expand Down Expand Up @@ -241,6 +249,8 @@ def run_psi4(self, output=None):
ca_occ = self.ca[:, 0 : self.nalpha]
self.pa = ca_occ @ ca_occ.T
self.da = self.ca.T @ self.overlap @ self.pa @ self.overlap @ self.ca
IGNORE
"""

# HF embedding functions
def _inactive_fock_matrix(self, frozen):
Expand Down

0 comments on commit 381f5fa

Please sign in to comment.