Skip to content

Commit 26d45bb

Browse files
No Nitrides for lanthanides anymore drop the _N_ECUT (#243)
* No Nitrides for lanthanides anymore drop the _N_ECUT * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e3a02d9 commit 26d45bb

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

src/aiida_sssp_workflow/workflows/convergence/cohesive_energy.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def compute_xy(
189189

190190
reference_node = orm.load_node(report.reference.uuid)
191191
output_parameters_r: orm.Dict = reference_node.outputs.output_parameters
192-
y_ref = output_parameters_r['cohesive_energy_per_atom']
192+
y_ref = output_parameters_r["cohesive_energy_per_atom"]
193193

194194
xs = []
195195
ys = []
@@ -198,24 +198,25 @@ def compute_xy(
198198
if node_point.exit_status != 0:
199199
# TODO: log to a warning file for where the node is not finished_okay
200200
continue
201-
201+
202202
x = node_point.wavefunction_cutoff
203203
xs.append(x)
204204

205205
node = orm.load_node(node_point.uuid)
206206
output_parameters_p: orm.Dict = node.outputs.output_parameters
207207

208-
y = (output_parameters_p['cohesive_energy_per_atom'] - y_ref) / y_ref * 100
208+
y = (output_parameters_p["cohesive_energy_per_atom"] - y_ref) / y_ref * 100
209209
ys.append(y)
210-
ys_cohesive_energy_per_atom.append(output_parameters_p['cohesive_energy_per_atom'])
210+
ys_cohesive_energy_per_atom.append(
211+
output_parameters_p["cohesive_energy_per_atom"]
212+
)
211213

212214
return {
213-
'xs': xs,
214-
'ys': ys,
215-
'ys_relative_diff': ys,
216-
'ys_cohesive_energy_per_atom': ys_cohesive_energy_per_atom,
217-
'metadata': {
218-
'unit': '%',
219-
}
215+
"xs": xs,
216+
"ys": ys,
217+
"ys_relative_diff": ys,
218+
"ys_cohesive_energy_per_atom": ys_cohesive_energy_per_atom,
219+
"metadata": {
220+
"unit": "%",
221+
},
220222
}
221-

src/aiida_sssp_workflow/workflows/transferability/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def _get_pw_cutoff(
106106
ecutwfc = max(ecutwfc, o_ecutwfc)
107107
ecutrho = max(ecutrho, o_ecutrho)
108108

109-
if "N" in elements:
110-
ecutwfc = max(ecutwfc, self._N_ECUTWFC)
111-
ecutrho = max(ecutrho, self._N_ECUTRHO)
109+
# if "N" in elements:
110+
# ecutwfc = max(ecutwfc, self._N_ECUTWFC)
111+
# ecutrho = max(ecutrho, self._N_ECUTRHO)
112112

113113
return ecutwfc, ecutrho

src/aiida_sssp_workflow/workflows/transferability/eos.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ def extract_eos(
472472
continue
473473

474474
raw_eos[k] = point_node.outputs.eos.output_volume_energy.get_dict()
475-
birch_murnaghan_fit[k] = point_node.outputs.eos.output_birch_murnaghan_fit.get_dict()
475+
birch_murnaghan_fit[k] = (
476+
point_node.outputs.eos.output_birch_murnaghan_fit.get_dict()
477+
)
476478
metric_dict[k] = point_node.outputs.output_parameters.get_dict()
477479

478480
return raw_eos, birch_murnaghan_fit, metric_dict

0 commit comments

Comments
 (0)