Skip to content

Commit

Permalink
Fix bug with species defaults (#4083)
Browse files Browse the repository at this point in the history
* Fix bug with species defaults

NEed to specify the default value properly

* pre-commit auto-fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tpurcell90 and pre-commit-ci[bot] authored Oct 2, 2024
1 parent d81568b commit b4bc03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatgen/io/aims/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def get_content(
content += cube.control_block

content += f"{lim}\n\n"
species_defaults = self._parameters.get("species_dir", "")
species_defaults = self._parameters.get("species_dir", SETTINGS.get("AIMS_SPECIES_DIR", ""))
if not species_defaults:
raise KeyError("Species' defaults not specified in the parameters")

Expand Down

0 comments on commit b4bc03d

Please sign in to comment.