Skip to content

Commit

Permalink
Fix documentation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Dec 24, 2021
1 parent 973de41 commit eed50e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ by qeschema.

>>> import qeschema
>>> doc = qeschema.PwDocument(schema='qes.xsd')
>>> doc.read('tests/examples/pw/Al001_relax_bfgs.xml')
>>> doc.read('tests/resources/pw/Al001_relax_bfgs.xml')
>>> pw_data = doc.to_dict()
>>> control_variables = pw_data['qes:espresso']['input']['control_variables']

Expand All @@ -28,6 +28,6 @@ the desired dictionary:

>>> import qeschema
>>> doc = qeschema.PwDocument()
>>> doc.read('tests/examples/pw/CO_bgfs_relax.xml')
>>> doc.read('tests/resources/pw/CO_bgfs_relax.xml')
>>> path = './/input/atomic_species'
>>> bsdict = doc.to_dict(path=path)

0 comments on commit eed50e8

Please sign in to comment.