Skip to content

Add bader_exe_path keyword to BaderAnalysis and run bader tests in CI - #3191

Merged
janosh merged 10 commits into
masterfrom
BaderAnalysis-add-bader_exe_path-kwarg
Jul 28, 2023
Merged

janosh merged 10 commits into
masterfrom
BaderAnalysis-add-bader_exe_path-kwarg

Conversation

@janosh

@janosh janosh commented Jul 28, 2023

Copy link
Copy Markdown
Member

You can now use

BaderAnalysis(bader_exe_path="/abs/path/to/bader")

to run bader anywhere on your system without any PATH modification shenanigans.

TODO: Promote atomate2.SETTINGS.VASP_RUN_BADER: bool to accept a string so users only need to specify bader_exe_path once in their atomate2 config.

@janosh janosh added enhancement A new feature or improvement to an existing one api Application programming interface cli Command line interface labels Jul 28, 2023
@janosh janosh changed the title Allow passing explicit file path to BaderAnalysis via bader_exe_path Allow passing explicit bader_exe_path to BaderAnalysis Jul 28, 2023
@janosh janosh changed the title Allow passing explicit bader_exe_path to BaderAnalysis Add bader_exe_path keyword to BaderAnalysis Jul 28, 2023
@janosh
janosh force-pushed the BaderAnalysis-add-bader_exe_path-kwarg branch from 6faaf8c to a2799fd Compare July 28, 2023 14:27
janosh added 2 commits July 28, 2023 15:18
…ad1zkrcz/CHGCAR'

in     def test_automatic_runner(self):
        test_dir = os.path.join(PymatgenTest.TEST_FILES_DIR, "bader")

>       summary = bader_analysis_from_path(test_dir)
@janosh janosh changed the title Add bader_exe_path keyword to BaderAnalysis Add bader_exe_path keyword to BaderAnalysis and run bader tests in CI Jul 28, 2023
@janosh
janosh force-pushed the BaderAnalysis-add-bader_exe_path-kwarg branch from 2e3c885 to d13a20b Compare July 28, 2023 23:00
@janosh
janosh merged commit 0b7607a into master Jul 28, 2023
@janosh
janosh deleted the BaderAnalysis-add-bader_exe_path-kwarg branch July 28, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Application programming interface cli Command line interface enhancement A new feature or improvement to an existing one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant