|
58 | 58 |
|
59 | 59 | from mp_api.client.core.client import _DictLikeAccess |
60 | 60 |
|
61 | | -DEFAULT_THERMOTYPE_CRITERIA = {"thermo_types": ["GGA_GGA+U"]} |
| 61 | +DEFAULT_THERMOTYPE_CRITERIA = {"thermo_types": ["GGA_GGA+U_R2SCAN"]} |
62 | 62 |
|
63 | 63 | RESTER_LAYOUT = { |
64 | 64 | "molecules/core": LazyImport( |
@@ -1032,7 +1032,7 @@ def get_entries_in_chemsys( |
1032 | 1032 | compatible_only: bool = True, |
1033 | 1033 | property_data: list[str] | None = None, |
1034 | 1034 | conventional_unit_cell: bool = False, |
1035 | | - additional_criteria: dict = DEFAULT_THERMOTYPE_CRITERIA, |
| 1035 | + additional_criteria: dict | None = None, |
1036 | 1036 | **kwargs, |
1037 | 1037 | ) -> list[ComputedStructureEntry] | list[GibbsComputedStructureEntry]: |
1038 | 1038 | """Helper method to get a list of ComputedEntries in a chemical system. |
@@ -1091,6 +1091,17 @@ def get_entries_in_chemsys( |
1091 | 1091 | for els in itertools.combinations(elements_set, i + 1) |
1092 | 1092 | ] |
1093 | 1093 |
|
| 1094 | + if additional_criteria is None: |
| 1095 | + warnings.warn( |
| 1096 | + "The default thermo type in retrieving entries has been changed from " |
| 1097 | + "the mixed/corrected PBE GGA and GGA+U hull (`thermo_type = GGA_GGA+U`) " |
| 1098 | + "to the joint PBE GGA / GGA+U / r2SCAN hull (`thermo_type = GGA_GGA+U_R2SCAN`). " |
| 1099 | + "To use the older behavior, call `get_entries_in_chemsys` with " |
| 1100 | + '`additional_criteria = {"thermo_types": ["GGA_GGA+U"]}`', |
| 1101 | + category=MPRestWarning, |
| 1102 | + stacklevel=2, |
| 1103 | + ) |
| 1104 | + |
1094 | 1105 | entries = self.get_entries( |
1095 | 1106 | all_chemsyses, |
1096 | 1107 | compatible_only=compatible_only, |
|
0 commit comments