| 1 | --- |
| 2 | layout: default |
| 3 | title: custodian.lobster.handlers.md |
| 4 | nav_exclude: true |
| 5 | --- |
| 6 | |
| 7 | # custodian.lobster.handlers module |
| 8 | |
| 9 | This module implements specific error handler for Lobster runs. |
| 10 | |
| 11 | ## *class* custodian.lobster.handlers.ChargeSpillingValidator(output_filename: str = ‘lobsterout’, charge_spilling_limit: float = 0.05) |
| 12 | |
| 13 | Bases: [`Validator`](custodian.custodian.md#custodian.custodian.Validator) |
| 14 | |
| 15 | Check if spilling is below certain threshold! |
| 16 | |
| 17 | * **Parameters** |
| 18 | * **output_filename** – filename of the output file of lobter, usually lobsterout |
| 19 | * **charge_spilling_limit** – limit of the charge spilling that will be considered okay |
| 20 | |
| 21 | ### check() |
| 22 | |
| 23 | open lobsterout and find charge spilling |
| 24 | |
| 25 | ## *class* custodian.lobster.handlers.EnoughBandsValidator(output_filename: str = ‘lobsterout’) |
| 26 | |
| 27 | Bases: [`Validator`](custodian.custodian.md#custodian.custodian.Validator) |
| 28 | |
| 29 | validates if enough bands for COHP calculation are available |
| 30 | |
| 31 | * **Parameters** |
| 32 | |
| 33 | **output_filename** – filename of output file, usually lobsterout |
| 34 | |
| 35 | ### check() |
| 36 | |
| 37 | checks if the VASP calculation had enough bands |
| 38 | :returns: (bool) if True, too few bands have been applied |
| 39 | |
| 40 | ## *class* custodian.lobster.handlers.LobsterFilesValidator() |
| 41 | |
| 42 | Bases: [`Validator`](custodian.custodian.md#custodian.custodian.Validator) |
| 43 | |
| 44 | Check for existence of some of the files that lobster |
| 45 | |
| 46 | ```none |
| 47 | normally create upon running. |
| 48 | ``` |
| 49 | |
| 50 | Check if lobster terminated normally by looking for finished |
| 51 | |
| 52 | Dummy init |
| 53 | |
| 54 | ### check() |
| 55 | |
| 56 | Check for errors. |