Skip to content

Commit c5d61e5

Browse files
update tot_magnetization (#1189)
Fixed an issue where the advanced parameters were not updating the tot_magnetization when loading a previous calculation.
1 parent d1aae33 commit c5d61e5

File tree

1 file changed

+1
-0
lines changed
  • src/aiidalab_qe/app/configuration/advanced

1 file changed

+1
-0
lines changed

src/aiidalab_qe/app/configuration/advanced/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,3 +333,4 @@ def _set_pw_parameters(self, pw_parameters):
333333
) # type: ignore
334334
if "tot_magnetization" in system_params:
335335
magnetization.type = "tot_magnetization"
336+
magnetization.total = system_params["tot_magnetization"]

0 commit comments

Comments
 (0)