File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1376,6 +1376,10 @@ def run_task(self, fw_spec):
1376
1376
{"wf_meta.wf_uuid" : uuid , "task_label" : optimize_task_label }
1377
1377
)
1378
1378
)
1379
+ #input_structure = Structure.from_dict(optimize_task["input"]["structure"])
1380
+ #input_magmoms = optimize_task["input"]["incar"]["MAGMOM"]
1381
+ #input_structure.add_site_property("magmom", input_magmoms)
1382
+
1379
1383
# used to determine if ordering changed during relaxation
1380
1384
# stored for checking suitable convergence is reached
1381
1385
energy_diff_relax_static = (
@@ -1384,11 +1388,14 @@ def run_task(self, fw_spec):
1384
1388
)
1385
1389
else :
1386
1390
energy_diff_relax_static = None
1391
+ #initial_structure = Structure.from_dict(d["output"]["structure"])
1392
+ #initial_magmoms = initial_structure.site_properties["magmom"]
1393
+ optimize_task = d
1387
1394
1388
1395
input_structure = Structure .from_dict (optimize_task ["input" ]["structure" ])
1389
1396
input_magmoms = optimize_task ["input" ]["incar" ]["MAGMOM" ]
1390
1397
input_structure .add_site_property ("magmom" , input_magmoms )
1391
-
1398
+
1392
1399
final_structure = Structure .from_dict (d ["output" ]["structure" ])
1393
1400
1394
1401
# picking a fairly large threshold so that default 0.6 µB magmoms don't
You can’t perform that action at this time.
0 commit comments