ase
Schemas for storing ASE-based data.
summarize_opt_run ¶
summarize_opt_run(
dyn: Optimizer,
trajectory: Trajectory | list[Atoms] | None = None,
check_convergence: bool = _DEFAULT_SETTING,
charge_and_multiplicity: tuple[int, int] | None = None,
move_magmoms: bool = False,
additional_fields: dict[str, Any] | None = None,
store: Store | None = _DEFAULT_SETTING,
) -> OptSchema
Get tabulated results from an ASE Atoms trajectory and store them in a database- friendly format. This is meant to be compatible with all calculator types.
Parameters:
-
dyn
(Optimizer
) –ASE Optimizer object.
-
trajectory
(Trajectory | list[Atoms] | None
, default:None
) –ASE Trajectory object or list[Atoms] from reading a trajectory file. If None, the trajectory must be found in dyn.traj_atoms.
-
check_convergence
(bool
, default:_DEFAULT_SETTING
) –Whether to check the convergence of the calculation. Defaults to True in settings.
-
charge_and_multiplicity
(tuple[int, int] | None
, default:None
) –Charge and spin multiplicity of the Atoms object, only used for Molecule metadata.
-
move_magmoms
(bool
, default:False
) –Whether to move the final magmoms of the original Atoms object to the initial magmoms of the returned Atoms object.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the task document.
-
store
(Store | None
, default:_DEFAULT_SETTING
) –Maggma Store object to store the results in. Defaults to
SETTINGS.STORE
.
Returns:
-
OptSchema
–Dictionary representation of the task document
Source code in quacc/schemas/ase.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
|
summarize_run ¶
summarize_run(
final_atoms: Atoms,
input_atoms: Atoms,
charge_and_multiplicity: tuple[int, int] | None = None,
move_magmoms: bool = False,
additional_fields: dict[str, Any] | None = None,
store: Store | None = _DEFAULT_SETTING,
) -> RunSchema
Get tabulated results from an Atoms object and calculator and store them in a database-friendly format. This is meant to be compatible with all calculator types.
Parameters:
-
final_atoms
(Atoms
) –ASE Atoms following a calculation. A calculator must be attached.
-
input_atoms
(Atoms
) –Input ASE Atoms object to store.
-
charge_and_multiplicity
(tuple[int, int] | None
, default:None
) –Charge and spin multiplicity of the Atoms object, only used for Molecule metadata.
-
move_magmoms
(bool
, default:False
) –Whether to move the final magmoms of the original Atoms object to the initial magmoms of the returned Atoms object.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the task document.
-
store
(Store | None
, default:_DEFAULT_SETTING
) –Maggma Store object to store the results in. Defaults to
SETTINGS.STORE
Returns:
-
RunSchema
–Dictionary representation of the task document
Source code in quacc/schemas/ase.py
summarize_vib_and_thermo ¶
summarize_vib_and_thermo(
vib: Vibrations,
igt: IdealGasThermo,
temperature: float = 298.15,
pressure: float = 1.0,
charge_and_multiplicity: tuple[int, int] | None = None,
additional_fields: dict[str, Any] | None = None,
store: Store | None = _DEFAULT_SETTING,
) -> VibThermoSchema
Get tabulated results from an ASE Vibrations run and ASE IdealGasThermo object and store them in a database-friendly format.
Parameters:
-
vib
(Vibrations
) –ASE Vibrations object.
-
igt
(IdealGasThermo
) –ASE IdealGasThermo object.
-
temperature
(float
, default:298.15
) –Temperature in Kelvins.
-
pressure
(float
, default:1.0
) –Pressure in bar.
-
charge_and_multiplicity
(tuple[int, int] | None
, default:None
) –Charge and spin multiplicity of the Atoms object, only used for Molecule metadata.
-
additional_fields
(dict[str, Any] | None
, default:None
) –Additional fields to add to the task document.
-
store
(Store | None
, default:_DEFAULT_SETTING
) –Maggma Store object to store the results in. Defaults to
SETTINGS.STORE
.
Returns:
-
VibThermoSchema
–A dictionary that merges the
VibSchema
andThermoSchema
.