Skip to content

Commit

Permalink
Fix minimal aiida-core version to 1.3.0
Browse files Browse the repository at this point in the history
Minimal aiida-core version has to be fixed due to the recently
introduced change in the aiida-core package moving the resources
validation to the scheduler plugin.

see aiidateam/aiida-core#4192
  • Loading branch information
astamminger committed Jul 9, 2020
1 parent 028c7d7 commit f8f14d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions aiida_cusp/calculators/calculation_base.py
Expand Up @@ -171,8 +171,6 @@ def vasp_calc_mpi_args(self):
scheduler = computer.get_scheduler()
resources = self.inputs.metadata.options.resources
default_cpus_machine = computer.get_default_mpiprocs_per_machine()
if default_cpus_machine is not None:
resources['default_mpiprocs_per_machine'] = default_cpus_machine
job_resource = scheduler.create_job_resource(**resources)
tot_num_mpiprocs = job_resource.get_tot_num_mpiprocs()
mpi_arg_dict = {'tot_num_mpiprocs': tot_num_mpiprocs}
Expand Down
2 changes: 1 addition & 1 deletion setup.json
Expand Up @@ -36,7 +36,7 @@
]
},
"install_requires": [
"aiida-core>=1.2.1,<2.0.0",
"aiida-core>=1.3.0,<2.0.0",
"custodian",
"pymatgen",
"ase"
Expand Down

0 comments on commit f8f14d8

Please sign in to comment.