forked from dptech-corp/dpgen2
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calypso speedup by refactorizing model deviation. (#217)
1. add a slice when running op `run_caly_model_devi` 2. support `distanceofion` in dict format, e.g. distanceofion = {"Mg": 0.8, "Al": 0.9}, the value denotes the radius of each element, and the mindistance of different element is equal to the sum of value of element Mg and Al and multipy 0.7. 3. support providing a list of list format `name_of_element`, e.g. name_of_element = [["Mg", "Al", "Cu", "Li"], ["La", "Ce", "Ca", "Li"], ["H"]], code will randomly choose one of element in each list to set up a input file of calypso. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new operation `PrepCalyModelDevi` for organizing and preparing model deviations. - Enhanced the concurrent learning operation to include the preparation of Calypso model deviations. - Updated the Calypso task generation logic to handle different types of input parameters more flexibly. - **Bug Fixes** - Improved error handling and logging in the Calypso operation to better manage failures. - **Tests** - Added new tests to validate the creation and handling of Calypso tasks with various configurations. - Implemented unit tests for the new `PrepCalyModelDevi` class to ensure its functionality. - **Refactor** - Reorganized logic and removed outdated code in several operations to streamline processes and improve clarity. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
8bdea14
commit 07df321
Showing
14 changed files
with
503 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.