File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed
src/aiida_sssp_workflow/workflows Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ def compute_xy(
189
189
190
190
reference_node = orm .load_node (report .reference .uuid )
191
191
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" ]
193
193
194
194
xs = []
195
195
ys = []
@@ -198,24 +198,25 @@ def compute_xy(
198
198
if node_point .exit_status != 0 :
199
199
# TODO: log to a warning file for where the node is not finished_okay
200
200
continue
201
-
201
+
202
202
x = node_point .wavefunction_cutoff
203
203
xs .append (x )
204
204
205
205
node = orm .load_node (node_point .uuid )
206
206
output_parameters_p : orm .Dict = node .outputs .output_parameters
207
207
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
209
209
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
+ )
211
213
212
214
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
+ },
220
222
}
221
-
Original file line number Diff line number Diff line change @@ -472,7 +472,9 @@ def extract_eos(
472
472
continue
473
473
474
474
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
+ )
476
478
metric_dict [k ] = point_node .outputs .output_parameters .get_dict ()
477
479
478
480
return raw_eos , birch_murnaghan_fit , metric_dict
You can’t perform that action at this time.
0 commit comments