Workchains#
Below are the primary workchains available in the module:
- Main TrainsPot WorkChain
- class aiida_trains_pot.aiida_trains_pot_workflow.aiida_trains_pot_workflow.TrainsPotWorkChain(*args: Any, **kwargs: Any)[source]#
- WorkChain to launch LAMMPS calculations. - classmethod get_builder(dataset, abinitiolabeling_code, md_code, training_code=None, abinitiolabeling_protocol=None, pseudo_family=None, md_protocol=None, **kwargs)[source]#
- Return a builder prepopulated with inputs selected according to the chosen protocol. - Parameters:
- dataset – The dataset to use for the calculation. 
- abinitiolabeling_protocol – The protocol to use for the ab initio labelling calculation. 
- abinitiolabeling_code – The code to use for the ab initio labelling calculation. 
- pseudo_family – The pseudo family to use for the calculation. 
- md_protocol – The protocol to use for the MD calculation. 
- kwargs – Additional keyword arguments to pass to the builder. 
 
- Returns:
- A builder prepopulated with inputs selected according to the chosen protocol. 
 
 
 
- Dataset Augmentation WorkChain
- Ab Initio Labelling WorkChain
- class aiida_trains_pot.aiida_trains_pot_workflow.abinitiolabelling_wc.AbInitioLabellingWorkChain(*args: Any, **kwargs: Any)[source]#
- A workchain to loop over structures and submit AbInitioLabellingWorkChain. 
 
- Training WorkChain
- class aiida_trains_pot.aiida_trains_pot_workflow.training_wc.TrainingWorkChain(*args: Any, **kwargs: Any)[source]#
- A workchain to loop over structures and submit MACEWorkChain. 
 
- MD Exploration WorkChain
- class aiida_trains_pot.aiida_trains_pot_workflow.exploration_wc.ExplorationWorkChain(*args: Any, **kwargs: Any)[source]#
- A workchain to loop over structures and submit LammpsWorkChain with retries. 
 
- MACE Training WorkChain
- class aiida_trains_pot.mace.mace_train_wc.mace_train_wc.MaceTrainWorkChain(*args: Any, **kwargs: Any)[source]#
- WorkChain to launch MACE training. - handle_out_of_walltime(calculation)[source]#
- Handle calculations where the walltime was reached. - The handler will try to find a configuration to restart from with the following priority - Use a stored restart file in the repository from the previous calculation. 
 - report_error_handled(calculation, action)[source]#
- Report an action taken for a calculation that has failed. - This should be called in a registered error handler if its condition is met and an action was taken. :param calculation: the failed calculation node :param action: a string message with the action taken 
 - set_restart(calculation)[source]#
- Set the parameters to run the restart calculation - Depending on the type of restart several variables of the input parameters will be changed to try to ensure that the calculation can resume from the last stored structure - Parameters:
- calculation – node from the previous calculation 
 
 - setup()[source]#
- Call the - setupof the- BaseRestartWorkChainand create the inputs dictionary in- self.ctx.inputs.- This - self.ctx.inputsdictionary will be used by the- BaseRestartWorkChainto submit the calculations in the internal loop.- The - parametersand- settingsinput- Dictnodes are converted into a regular dictionary and the default namelists for the- parametersare set to empty dictionaries if not specified.
 
 
