Skip to content

Commit

Permalink
Merge pull request #3 from scemama/aiida2
Browse files Browse the repository at this point in the history
readme
  • Loading branch information
addman2 authored Mar 19, 2024
2 parents 330f46e + d7296c4 commit 26178e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You will be promted some questions but answering them is very easy. Setting up P
Now you need to specify computer where you want to run your calculations. Here is the setup for your local computer. First setup a `yaml` file with setting called `localhost.yaml` and then setup the code.

```
$ cat localhost.yaml
$ cat > localhost.yaml
---
label: "localhost"
hostname: "localhost"
Expand All @@ -43,9 +43,9 @@ use_double_quotes: true
mpirun_command: "mpirun -np {tot_num_mpiprocs}"
mpiprocs_per_machine: "8"
prepend_text: " "
appent_test: " "
append_text: " "
$ verdi copmuter setup --config localhost.yaml
$ verdi computer setup --config localhost.yaml
```

One can test the computer via `verdi computer test <label>`.
Expand All @@ -55,7 +55,7 @@ One can test the computer via `verdi computer test <label>`.
Lastly we need to setup the code. Again to do the most simple setup one can pull docker image from docker hub.

```
$ docker push addman151/qp2-aiida:tagname
$ docker pull docker://addman151/qp2-aiida:tagname
# you can use tagname:latest - for serial qmcchem
# or you can use tagname:intel - for parallel
Expand All @@ -64,7 +64,7 @@ $ docker push addman151/qp2-aiida:tagname
Unfortunatelly, the image is litle bit large, something what has to be fix in the future. When the image is downloaded we can continue by creating new code node inside AiiDA. Again we will use an yaml file.

```
$ cat qp.yaml
$ cat > qp.yaml
engine_command: "docker run -v $(pwd):/data {image_name}"
wrap_cmdline_params: false
use_double_quotes: false
Expand Down Expand Up @@ -101,7 +101,7 @@ echo "2
H 0.0 0.0 0.0
H 0.7 0.0 0.0" > H2.xyz
verdi data qp2.cli create --code qp2-docker@localhost --structure H2.xyz
verdi data qp2.cli create Hydrogen2 --code qp2-docker@localhost --structure H2.xyz
# Or equivalent with:
# aqp create --code qp2-docker@localhost --structure H2.xyz
Expand All @@ -117,12 +117,12 @@ verdi data qp2.cli show # Look at the results

I wrote these command from head hopefully there are no mistakes.

## Runnin QMC=Chem
## Running QMC=Chem

Pull `QMC=Chem` docker image

```
docker pull addman151/qmcchem-aiida
docker pull docker://addman151/qmcchem-aiida
```

You can install this code in the same way how the qp code was installed. In fact this image contain also `qp` so you can you this image also for previous calculations.
Expand Down
5 changes: 3 additions & 2 deletions aiida_qp2/run/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

QP2RunCalculation = CalculationFactory('qp2.run')

_DICTIONARES = { "scf": "hartree_fock",
_DICTIONARIES = { "scf": "hartree_fock",
"ccsd": "ccsd",
"fci": "fci",
}

class QP2RunParser(Parser):
Expand Down Expand Up @@ -81,7 +82,7 @@ def parse(self, **kwargs): # pylint: disable=too-many-locals
return self.exit_codes.ERROR_MISSING_OUTPUT_FILES

import tarfile
method = _DICTIONARES.get(run_type, None)
method = _DICTIONARIES.get(run_type, None)
if method:
path_energy = f"aiida.ezfio/{method}/energy"
with out_folder.open(output_wf_filename, 'rb') as wf_out:
Expand Down
1 change: 1 addition & 0 deletions setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"reentry_register": true,
"install_requires": [
"aiida-core>=2.1.0,<3.0.0",
"ase",
"six",
"psycopg2-binary<2.9",
"voluptuous",
Expand Down

0 comments on commit 26178e2

Please sign in to comment.