10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-10-20 06:48:20 +02:00
quantum_package/docs/source/users_guide/qp_edit.rst

60 lines
1.4 KiB
ReStructuredText
Raw Normal View History

.. _qp_edit:
=======
qp_edit
=======
2019-01-05 01:51:21 +01:00
.. program:: qp_edit
This command reads the content of the |EZFIO| directory and creates a temporary
2019-01-14 15:20:51 +01:00
file containing the data. The data is presented as a *ReStructured Text* (rst)
document, where each section corresponds to the corresponding |qp| module. The
content of the file can be modified to change the input parameters. When the
text editor is closed, the updated data is saved into the |EZFIO| directory.
2019-01-02 23:22:46 +01:00
.. note::
The text editor which will be opened is defined by the :envvar:`EDITOR`
2019-01-14 15:20:51 +01:00
environment variable. If this variable is not set, the :command:`vi`
text editor will be used by default.
2019-01-02 23:22:46 +01:00
.. warning::
When the wave function is too large (more than 10 000 determinants), the
determinants are not displayed.
Usage
-----
.. code:: bash
2019-01-14 19:52:41 +01:00
qp_edit [-c] [-h] [-n <int>] [-s <range>] [--] EZFIO_DIR
2019-01-14 15:20:51 +01:00
.. option:: -c, --check
Checks the input data
2019-01-14 15:20:51 +01:00
.. option:: -h, --help
2019-01-14 15:20:51 +01:00
Print the help text and exits
2019-01-14 15:20:51 +01:00
.. option:: -n, --ndet=<int>
2019-01-14 15:20:51 +01:00
Truncates the wavefunction to the target number of determinants
2019-01-14 15:20:51 +01:00
.. option:: -s, --state=<range>
2019-01-14 15:20:51 +01:00
Select the states to extract from the |EZFIO| directory, using the same conventions
as :ref:`qp_set_mo_class`. See example below.
2019-01-14 15:20:51 +01:00
Example
-------
2019-01-14 15:20:51 +01:00
.. code:: bash
2019-01-14 15:20:51 +01:00
qp_edit --state="[1,3-5]" test.ezfio
2019-01-14 15:20:51 +01:00
Removes all states except states 1,3,4 and 5 from :file:`test.ezfio`. The
resulting |EZFIO| directory has 4 states.