Skip to content

Commit cc828d5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e5bf765 commit cc828d5

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
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/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)