-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset the GUI when selecting to start a new workflow.
- Loading branch information
1 parent
967c3f8
commit fc36106
Showing
14 changed files
with
128 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
def test_reload_and_reset(submit_app_generator, generate_qeapp_workchain): | ||
"""Test if the GUI paramters can be reload and reset properly""" | ||
wkchain = generate_qeapp_workchain( | ||
relax_type="positions", run_bands=True, run_pdos=False, spin_type="collinear" | ||
) | ||
app = submit_app_generator() | ||
# select the pk | ||
app.work_chain_selector.value = wkchain.node.pk | ||
# check if the value are reload correctly | ||
assert app.configure_step.workchain_settings.relax_type.value == "positions" | ||
assert app.configure_step.workchain_settings.spin_type.value == "collinear" | ||
assert app.configure_step.workchain_settings.properties["bands"].run.value is True | ||
assert app.configure_step.workchain_settings.properties["pdos"].run.value is False | ||
assert ( | ||
len( | ||
app.configure_step.advanced_settings.pseudo_setter.pseudo_setting_widgets.children | ||
) | ||
> 0 | ||
) | ||
# new workflow, this will reset the GUI | ||
app.work_chain_selector.value = None | ||
# check if the value are reload correctly | ||
assert app.structure_step.manager.structure is None | ||
assert app.configure_step.workchain_settings.relax_type.value == "positions_cell" | ||
assert app.configure_step.workchain_settings.spin_type.value == "none" | ||
assert app.configure_step.workchain_settings.properties["bands"].run.value is False | ||
assert app.configure_step.workchain_settings.properties["pdos"].run.value is False | ||
assert app.configure_step.advanced_settings.pseudo_setter.ecutwfc_setter.value == 0 | ||
assert ( | ||
len( | ||
app.configure_step.advanced_settings.pseudo_setter.pseudo_setting_widgets.children | ||
) | ||
== 0 | ||
) | ||
assert app.submit_step.resources_config.num_cpus.value == 1 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.