Skip to content

Commit

Permalink
Merge pull request #83 from xiaoruiDong/fix_doc
Browse files Browse the repository at this point in the history
Fix doc: fix reaction/rdkitmol usage on the index page
  • Loading branch information
xiaoruiDong committed Feb 2, 2024
2 parents efffe5a + 8f91ab6 commit c0c7242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ To start with, simply try:
.. code-block:: python
from rdmc import RDKitMol, Reaction
mol = RDKitMol('CCO')
rxn = Reaction('CCO>>CC(=O)O')
mol = RDKitMol.FromSmiles('CCO')
rxn = Reaction.from_reaction_smiles('CCO>>CC(=O)O')
And see what the ``mol`` and ``rxn`` are capable of! The full lists of APIs of :obj:`RDKitMol <rdmc.mol.RDKitMol>` and :obj:`Reaction <rdmc.reaction.Reaction>` are provided in this documentation.

Expand Down
3 changes: 2 additions & 1 deletion test/external/logparser/test_irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

data_path = repo_dir / 'test' / 'data'


def test_fail_irc_with_correction_steps():
log_file = data_path / 'gaussian_irc_with_correction_failed.log'
log = GaussianLog(log_file)
assert not log.success
# See if energy values can be correctedly loaded
# See if energy values can be correctly loaded
assert log.get_scf_energies(converged=True).shape[0] == 7
assert log.get_scf_energies(converged=False).shape[0] == 35

0 comments on commit c0c7242

Please sign in to comment.