Skip to content

Commit 965ce20

Browse files
committed
Merge branch 'mkphuthi/develop' of https://github.com/BattModels/asimtools into mkphuthi/develop
2 parents 2d1713d + adc9162 commit 965ce20

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [develop] - 2024-11-13
88

99
### Added
10+
- ASIMMODULE: vasp/vasp
1011
- ASIMMODULE: benchmarking/distribution
1112
- ASIMMODULE: data/collect_images asimmodule
1213
- CALCULATOR: OMAT24 calculator

asimtools/asimmodules/benchmarking/distribution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def distribution(
2727
remap_keys = {}
2828
unit_factors = {'meV': 1000, 'eV': 1, 'kcal/mol': 23.0621}
2929
unit_factor = unit_factors[unit]
30+
if remap_keys is None:
31+
remap_keys = {}
3032

3133
unit_dict = {
3234
'energy': f'{unit}/atom',

asimtools/asimmodules/vasp/vasp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ def vasp(
2828
vaspinput_args: Optional[Dict] = None,
2929
command: str = 'vasp_std',
3030
mpset: Optional[str] = None,
31-
write_image_output: bool = False,
31+
write_image_output: bool = True,
3232
) -> Dict:
3333
"""Run VASP with given input files and specified image
3434
3535
:param image: Initial image for VASP calculation. Image specification,
3636
see :func:`asimtools.utils.get_atoms`
3737
:type image: Dict
38-
:param vaspinput_args: Dictionary of VASP input arguments.
38+
:param vaspinput_args: Dictionary of pymatgen's VASPInput arguments.
3939
See :class:`pymatgen.io.vasp.inputs.VaspInput`
4040
:type vaspinput_args: Dict
4141
:param command: Command with which to run VASP, defaults to 'vasp_std'
4242
:type command: str, optional
43-
:param mpset: Material Project VASP set to use, defaults to None
43+
:param mpset: Materials Project VASP set to use, defaults to None
4444
:type mpset: str, optional
4545
:param write_image_output: Whether to write output image in standard
4646
asimtools format to file, defaults to False

asimtools/job.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(
6363
self.sim_input['src_dir'] = self.launchdir
6464

6565
self.env_id = self.sim_input.get('env_id', None)
66-
if self.env_id is not None:
66+
if self.env_id is not None and self.env_input is not None:
6767
self.env = self.env_input[self.env_id]
6868
else:
6969
self.env = {
@@ -1062,7 +1062,11 @@ def load_job_from_directory(workdir: os.PathLike) -> Job:
10621062
else:
10631063
calc_input = None
10641064

1065-
job = Job(sim_input, env_input, calc_input)
1065+
job = Job(
1066+
sim_input=sim_input,
1067+
env_input=env_input,
1068+
calc_input=calc_input,
1069+
)
10661070

10671071
# This makes sure that wherever we may be loading the job from, we refer
10681072
# to the correct input/output files. As of now, it does not seem necessary

0 commit comments

Comments
 (0)