-
Notifications
You must be signed in to change notification settings - Fork 28
New active learning with AiiDA and FLARE #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bastonero
wants to merge
27
commits into
SSCHAcode:master
Choose a base branch
from
bastonero:new/flare-interface
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f34ec92
On-the-fly training via AiiDA and FLARE :rocket:
bastonero 8ec91e0
Merge branch 'examples/aiida' of https://github.com/bastonero/python-…
bastonero 4a93dda
Fix logic for on-the-fly training
bastonero a64e3c1
Add on-the-fly examples :rocket:
bastonero f8d2b9d
Update testsuite yaml to perform tests using FLARE
bastonero 2256e93
Improve on-the-fly
bastonero ee7488c
Merge branch 'master' of https://github.com/SSCHAcode/python-sscha in…
bastonero d1ae78b
Merge branch 'master' of https://github.com/SSCHAcode/python-sscha in…
bastonero 3f9e922
Add submission in batches
bastonero 8d145da
Add tweaks and examples
bastonero 570a6d7
Spotting the infamous bug
bastonero 511a479
Flush the stdout to avoid waiting aiida workchains
bastonero e85e810
Do not train hyperparameters if no DFT was done
bastonero 8bcb779
Add `train_hyps` to the on-the-fly settings
bastonero e1edeb7
Trying to see if we fix the stress issue
bastonero 5acc0d7
Fix little bug
bastonero ed837e0
Fix check on state of workchains to be `is_terminated`
bastonero 7dc7654
Merge branch 'master' of https://github.com/SSCHAcode/python-sscha in…
bastonero 7a2111a
Active-learning: new module and enhanced installation options
bastonero f9ae382
Examples: add realistic active learning examples
bastonero 6eb1ce3
Examples: update active learning installation instructions
bastonero 4aa3954
Add quasi-harmonic approximation scripts and notebooks
bastonero cd6779d
Merge branch 'master' of https://github.com/SSCHAcode/python-sscha in…
bastonero 45977bc
Install mir-flare after installing BLAS library
bastonero 3aceeac
Update protocol names
bastonero 769ddc1
Fix example
bastonero 0dc0b99
Remove unnecessary files and notebooks
bastonero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,7 @@ frequencies*.* | |
| timer.json | ||
| minim.dat | ||
| otf_run* | ||
| nohup.out | ||
| disp_* | ||
| _data_tmp_ | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: 'v4.1.0' | ||
| hooks: | ||
| - id: double-quote-string-fixer | ||
| - id: end-of-file-fixer | ||
| - id: fix-encoding-pragma | ||
| - id: mixed-line-ending | ||
| - id: trailing-whitespace | ||
| exclude: >- | ||
| (?x)^( | ||
| tests/.*.*out| | ||
| tests/.*.in$ | ||
| )$ | ||
|
|
||
| - repo: https://github.com/ikamensh/flynt/ | ||
| rev: '0.76' | ||
| hooks: | ||
| - id: flynt | ||
|
|
||
| - repo: https://github.com/pycqa/isort | ||
| rev: '5.12.0' | ||
| hooks: | ||
| - id: isort | ||
|
|
||
| - repo: https://github.com/pre-commit/mirrors-yapf | ||
| rev: 'v0.32.0' | ||
| hooks: | ||
| - id: yapf | ||
| name: yapf | ||
| types: [python] | ||
| args: ['-i'] | ||
| exclude: &exclude_files > | ||
| (?x)^( | ||
| docs/.*| | ||
| tests/.*(?<!\.py)$ | ||
| )$ | ||
| additional_dependencies: ['toml'] | ||
|
|
||
| - repo: local | ||
| hooks: | ||
| - id: pylint | ||
| name: pylint | ||
| entry: pylint | ||
| types: [python] | ||
| language: system | ||
|
|
||
|
|
||
| - repo: https://github.com/PyCQA/pydocstyle | ||
| rev: '6.1.1' | ||
| hooks: | ||
| - id: pydocstyle | ||
| exclude: *exclude_files | ||
| additional_dependencies: ['toml'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| Dynamical matrix file | ||
| File generated with the CellConstructor by Lorenzo Monacelli | ||
| 1 2 0 1.8897259890000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 | ||
| Basis vectors | ||
| 2.7154799999999999 2.7154799999999999 0.0000000000000000 | ||
| 2.7154799999999999 0.0000000000000000 2.7154799999999999 | ||
| 0.0000000000000000 2.7154799999999999 2.7154799999999999 | ||
| 1 'Si ' 25597.9124185021937592 | ||
| 1 1 -0.0000000000000004 0.0000000000000004 0.0000000000000004 | ||
| 2 1 1.3577400000000002 1.3577400000000006 1.3577400000000004 | ||
|
|
||
| Dynamical Matrix in cartesian axes | ||
|
|
||
| q = ( 0.000000000000 0.000000000000 0.000000000000 ) | ||
|
|
||
| 1 1 | ||
| 0.2590944141379855 0.0000000000000000 0.0000000000000001 0.0000000000000000 -0.0000000000000000 0.0000000000000000 | ||
| 0.0000000000000001 0.0000000000000000 0.2590944141379854 0.0000000000000000 -0.0000000000000002 0.0000000000000000 | ||
| -0.0000000000000000 0.0000000000000000 -0.0000000000000002 0.0000000000000000 0.2590944141379854 0.0000000000000000 | ||
| 1 2 | ||
| -0.2590944141379856 0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 | ||
| -0.0000000000000001 0.0000000000000000 -0.2590944141379856 0.0000000000000000 0.0000000000000002 0.0000000000000000 | ||
| 0.0000000000000001 0.0000000000000000 0.0000000000000002 0.0000000000000000 -0.2590944141379856 0.0000000000000000 | ||
| 2 1 | ||
| -0.2590944141379856 0.0000000000000000 -0.0000000000000001 0.0000000000000000 0.0000000000000001 0.0000000000000000 | ||
| -0.0000000000000000 0.0000000000000000 -0.2590944141379856 0.0000000000000000 0.0000000000000002 0.0000000000000000 | ||
| 0.0000000000000001 0.0000000000000000 0.0000000000000002 0.0000000000000000 -0.2590944141379855 0.0000000000000000 | ||
| 2 2 | ||
| 0.2590944141379858 0.0000000000000000 0.0000000000000001 0.0000000000000000 -0.0000000000000001 0.0000000000000000 | ||
| 0.0000000000000001 0.0000000000000000 0.2590944141379858 0.0000000000000000 -0.0000000000000001 0.0000000000000000 | ||
| -0.0000000000000001 0.0000000000000000 -0.0000000000000001 0.0000000000000000 0.2590944141379858 0.0000000000000000 | ||
|
|
||
| Diagonalizing the dynamical matrix | ||
|
|
||
| q = ( 0.000000000000 0.000000000000 0.000000000000 ) | ||
|
|
||
| *************************************************************************** | ||
| freq ( 1) = -0.00000009 [THz] = -0.00000305 [cm-1] | ||
| ( 0.699099 0.000000 -0.097697 0.000000 0.041428 0.000000 ) | ||
| ( 0.699099 0.000000 -0.097697 0.000000 0.041428 0.000000 ) | ||
| freq ( 2) = 0.00000020 [THz] = 0.00000677 [cm-1] | ||
| ( 0.002505 0.000000 0.291167 0.000000 0.644372 0.000000 ) | ||
| ( 0.002505 0.000000 0.291167 0.000000 0.644372 0.000000 ) | ||
| freq ( 3) = 0.00000026 [THz] = 0.00000855 [cm-1] | ||
| ( -0.106088 0.000000 -0.636928 0.000000 0.288216 0.000000 ) | ||
| ( -0.106088 0.000000 -0.636928 0.000000 0.288216 0.000000 ) | ||
| freq ( 4) = 14.80188490 [THz] = 493.73766382 [cm-1] | ||
| ( -0.042416 0.000000 -0.451763 0.000000 -0.542320 0.000000 ) | ||
| ( 0.042416 0.000000 0.451763 0.000000 0.542320 0.000000 ) | ||
| freq ( 5) = 14.80188490 [THz] = 493.73766382 [cm-1] | ||
| ( -0.515182 0.000000 0.391193 0.000000 -0.285579 0.000000 ) | ||
| ( 0.515182 0.000000 -0.391193 0.000000 0.285579 0.000000 ) | ||
| freq ( 6) = 14.80188490 [THz] = 493.73766382 [cm-1] | ||
| ( -0.482481 0.000000 -0.377992 0.000000 0.352610 0.000000 ) | ||
| ( 0.482481 0.000000 0.377992 0.000000 -0.352610 0.000000 ) | ||
| *************************************************************************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| Dynamical matrix file | ||
| File generated with the CellConstructor by Lorenzo Monacelli | ||
| 1 2 0 1.8897259890000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000000 | ||
| Basis vectors | ||
| 2.7154799999999999 2.7154799999999999 0.0000000000000000 | ||
| 2.7154799999999999 0.0000000000000000 2.7154799999999999 | ||
| 0.0000000000000000 2.7154799999999999 2.7154799999999999 | ||
| 1 'Si ' 25597.9124185021937592 | ||
| 1 1 -0.0000000000000004 0.0000000000000004 0.0000000000000004 | ||
| 2 1 1.3577400000000002 1.3577400000000006 1.3577400000000004 | ||
|
|
||
| Dynamical Matrix in cartesian axes | ||
|
|
||
| q = ( -0.184129509332 0.000000000000 0.000000000000 ) | ||
|
|
||
| 1 1 | ||
| 0.3548752551952572 0.0000000000000000 0.0000000000000000 0.0000000000000000 -0.0000000000000000 -0.0000000000000000 | ||
| 0.0000000000000000 -0.0000000000000000 0.2477607075541515 0.0000000000000000 0.0000000000000001 -0.0000000000000000 | ||
| -0.0000000000000000 0.0000000000000000 0.0000000000000001 0.0000000000000000 0.2477607075541518 0.0000000000000000 | ||
| 1 2 | ||
| 0.0000000000000000 0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000000 -0.0000000000000000 | ||
| 0.0000000000000000 0.0000000000000000 0.0000000000000001 0.0000000000000000 -0.2008555582082014 -0.0000000087796757 | ||
| -0.0000000000000000 -0.0000000000000000 -0.2008555582082012 -0.0000000087796757 -0.0000000000000002 -0.0000000000000000 | ||
| 2 1 | ||
| 0.0000000000000000 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 -0.0000000000000000 0.0000000000000000 | ||
| -0.0000000000000000 -0.0000000000000000 0.0000000000000001 0.0000000000000000 -0.2008555582082013 0.0000000087796757 | ||
| 0.0000000000000000 0.0000000000000000 -0.2008555582082014 0.0000000087796757 -0.0000000000000002 0.0000000000000000 | ||
| 2 2 | ||
| 0.3548752551952572 0.0000000000000000 0.0000000000000000 0.0000000000000000 -0.0000000000000000 -0.0000000000000000 | ||
| 0.0000000000000000 -0.0000000000000000 0.2477607075541515 0.0000000000000000 -0.0000000000000001 -0.0000000000000000 | ||
| -0.0000000000000000 0.0000000000000000 -0.0000000000000001 0.0000000000000000 0.2477607075541518 0.0000000000000000 | ||
|
|
||
| Dynamical Matrix in cartesian axes | ||
|
|
||
| q = ( 0.000000000000 0.000000000000 -0.184129509332 ) | ||
|
|
||
| 1 1 | ||
| 0.2477607075541515 0.0000000000000000 0.0000000000000000 -0.0000000000000000 -0.0000000000000000 0.0000000000000000 | ||
| 0.0000000000000000 0.0000000000000000 0.2477607075541516 -0.0000000000000000 0.0000000000000001 -0.0000000000000000 | ||
| -0.0000000000000000 -0.0000000000000000 0.0000000000000001 0.0000000000000000 0.3548752551952568 0.0000000000000000 | ||
| 1 2 | ||
| -0.0000000000000000 -0.0000000000000000 -0.2008555582082013 -0.0000000087796755 0.0000000000000000 0.0000000000000000 | ||
| -0.2008555582082013 -0.0000000087796755 -0.0000000000000002 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 | ||
| -0.0000000000000001 -0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000001 0.0000000000000000 | ||
| 2 1 | ||
| -0.0000000000000000 0.0000000000000000 -0.2008555582082013 0.0000000087796755 -0.0000000000000001 0.0000000000000000 | ||
| -0.2008555582082013 0.0000000087796755 -0.0000000000000002 0.0000000000000000 0.0000000000000000 -0.0000000000000000 | ||
| 0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000000 0.0000000000000001 -0.0000000000000000 | ||
| 2 2 | ||
| 0.2477607075541515 -0.0000000000000000 0.0000000000000001 -0.0000000000000000 -0.0000000000000000 0.0000000000000000 | ||
| 0.0000000000000001 -0.0000000000000000 0.2477607075541518 0.0000000000000000 0.0000000000000000 -0.0000000000000000 | ||
| -0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000000 0.3548752551952572 0.0000000000000000 | ||
|
|
||
| Dynamical Matrix in cartesian axes | ||
|
|
||
| q = ( 0.000000000000 -0.184129509332 0.000000000000 ) | ||
|
|
||
| 1 1 | ||
| 0.2477607075541516 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 | ||
| 0.0000000000000000 0.0000000000000000 0.3548752551952573 -0.0000000000000000 0.0000000000000001 0.0000000000000000 | ||
| 0.0000000000000000 0.0000000000000000 0.0000000000000001 -0.0000000000000000 0.2477607075541516 -0.0000000000000000 | ||
| 1 2 | ||
| 0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000000 -0.2008555582082014 -0.0000000087796755 | ||
| -0.0000000000000000 -0.0000000000000000 -0.0000000000000000 -0.0000000000000000 -0.0000000000000000 -0.0000000000000000 | ||
| -0.2008555582082015 -0.0000000087796755 0.0000000000000001 -0.0000000000000000 -0.0000000000000000 -0.0000000000000000 | ||
| 2 1 | ||
| 0.0000000000000000 0.0000000000000000 -0.0000000000000000 0.0000000000000000 -0.2008555582082015 0.0000000087796755 | ||
| 0.0000000000000000 -0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000001 0.0000000000000000 | ||
| -0.2008555582082014 0.0000000087796755 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 0.0000000000000000 | ||
| 2 2 | ||
| 0.2477607075541516 0.0000000000000000 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 0.0000000000000000 | ||
| -0.0000000000000000 -0.0000000000000000 0.3548752551952571 -0.0000000000000000 0.0000000000000000 -0.0000000000000000 | ||
| -0.0000000000000000 -0.0000000000000000 0.0000000000000000 0.0000000000000000 0.2477607075541518 0.0000000000000000 | ||
|
|
||
| Diagonalizing the dynamical matrix | ||
|
|
||
| q = ( -0.184129509332 0.000000000000 0.000000000000 ) | ||
|
|
||
| *************************************************************************** | ||
| freq ( 1) = 4.45331342 [THz] = 148.54652494 [cm-1] | ||
| ( -0.000000 0.000000 0.703431 0.000000 0.072005 0.000000 ) | ||
| ( 0.000000 -0.000000 0.072005 -0.000000 0.703431 -0.000000 ) | ||
| freq ( 2) = 4.45331342 [THz] = 148.54652494 [cm-1] | ||
| ( 0.000000 -0.000000 -0.072005 -0.000000 0.703431 0.000000 ) | ||
| ( -0.000000 0.000000 0.703431 -0.000000 -0.072005 0.000000 ) | ||
| freq ( 3) = 12.24928837 [THz] = 408.59222083 [cm-1] | ||
| ( -0.145074 0.000000 0.000000 -0.000000 -0.000000 0.000000 ) | ||
| ( -0.989421 0.000000 0.000000 -0.000000 -0.000000 0.000000 ) | ||
| freq ( 4) = 12.24928837 [THz] = 408.59222083 [cm-1] | ||
| ( 0.989421 0.000000 -0.000000 -0.000000 -0.000000 0.000000 ) | ||
| ( -0.145074 0.000000 -0.000000 -0.000000 0.000000 0.000000 ) | ||
| freq ( 5) = 13.77242792 [THz] = 459.39867995 [cm-1] | ||
| ( 0.000000 -0.000000 0.411585 -0.000000 -0.574977 0.000000 ) | ||
| ( 0.000000 -0.000000 0.574977 -0.000000 -0.411585 0.000000 ) | ||
| freq ( 6) = 13.77242792 [THz] = 459.39867995 [cm-1] | ||
| ( 0.000000 -0.000000 0.574977 -0.000000 0.411585 -0.000000 ) | ||
| ( 0.000000 0.000000 -0.411585 0.000000 -0.574977 0.000000 ) | ||
| *************************************************************************** |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.