|
25 | 25 | class LobsterMaker(Maker): |
26 | 26 | """ |
27 | 27 | LOBSTER job maker. |
28 | | - The maker copies the DFT output files |
29 | | - necessary for the LOBSTER run. |
30 | | - It will create all lobsterin files, run LOBSTER, |
31 | | - zip the outputs and parse the LOBSTER outputs. |
| 28 | +
|
| 29 | + The maker copies DFT output files necessary for the LOBSTER run. It will create all |
| 30 | + lobsterin files, run LOBSTER, zip the outputs and parse the LOBSTER outputs. |
32 | 31 |
|
33 | 32 | Parameters |
34 | 33 | ---------- |
35 | 34 | name : str |
36 | 35 | Name of jobs produced by this maker. |
37 | | - resubmit : bool |
38 | | - Maybe useful. |
39 | 36 | task_document_kwargs : dict |
40 | 37 | Keyword arguments passed to :obj:`.LobsterTaskDocument.from_directory`. |
41 | | - user_lobsterin_settings: dict |
| 38 | + user_lobsterin_settings : dict |
42 | 39 | Dict including additional information on the Lobster settings. |
43 | | - additional_outputs: list[str] |
44 | | - A list including additional output files. |
45 | | - calculation_type: str |
46 | | - Type of calculation for the Lobster run. |
| 40 | + run_lobster_kwargs : dict |
| 41 | + Keyword arguments that will get passed to :obj:`.run_lobster`. |
| 42 | + calculation_type : str |
| 43 | + Type of calculation for the Lobster run that will get passed to |
| 44 | + :obj:`.Lobsterin.standard_calculations_from_vasp_files`. |
47 | 45 | """ |
48 | 46 |
|
49 | 47 | name: str = "lobster" |
50 | | - resubmit: bool = False |
51 | 48 | task_document_kwargs: dict = field(default_factory=dict) |
52 | 49 | user_lobsterin_settings: dict | None = None |
53 | | - additional_outputs: list | None = None |
| 50 | + run_lobster_kwargs: dict = field(default_factory=dict) |
54 | 51 | calculation_type: str = "standard" |
55 | 52 |
|
56 | 53 | @job(output_schema=LobsterTaskDocument, data=[CompleteCohp, LobsterCompleteDos]) |
@@ -84,17 +81,16 @@ def make( |
84 | 81 | lobsterin[key] = parameter |
85 | 82 |
|
86 | 83 | lobsterin.write_lobsterin("lobsterin") |
| 84 | + |
87 | 85 | # run lobster |
88 | 86 | logger.info("Running LOBSTER") |
89 | | - run_lobster() |
| 87 | + run_lobster(**self.run_lobster_kwargs) |
90 | 88 |
|
91 | 89 | # gzip folder |
92 | 90 | gzip_dir(".") |
93 | 91 |
|
94 | 92 | # parse lobster outputs |
95 | | - task_doc = LobsterTaskDocument.from_directory( |
| 93 | + return LobsterTaskDocument.from_directory( |
96 | 94 | Path.cwd(), |
97 | 95 | **self.task_document_kwargs, |
98 | | - additional_fields=self.additional_outputs, |
99 | 96 | ) |
100 | | - return task_doc |
0 commit comments