Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block the submission of calculations that would not actually do anything #97

Closed
mbercx opened this issue Jul 18, 2021 · 1 comment · Fixed by #139
Closed

Block the submission of calculations that would not actually do anything #97

mbercx opened this issue Jul 18, 2021 · 1 comment · Fixed by #139
Assignees
Labels
enhancement New feature or request priority/important
Projects

Comments

@mbercx
Copy link
Member

mbercx commented Jul 18, 2021

Currently, if the user asks to leave the structure "as is", and doesn't specify that she or he wants to calculate the band structure, the work chain will effectively do nothing, just pass the input structure.

Should this be a valid way of using the QEapp, or should we simply block submission since the user is effectively asking it to do nothing?

Currently the submission is accepted, but this leads to an error when generating workchain report:

~/apps/quantum-espresso/aiidalab_qe/report.py in _generate_report_dict(qeapp_wc)
     84         bands_kpoints_distance = qeapp_wc.inputs.bands.bands_kpoints_distance.value
     85 
---> 86     energy_cutoff_wfc = round(pw_parameters["SYSTEM"]["ecutwfc"])
     87     energy_cutoff_rho = round(pw_parameters["SYSTEM"]["ecutrho"])
     88 

UnboundLocalError: local variable 'pw_parameters' referenced before assignment
@mbercx mbercx added question Further information is requested priority/important labels Jul 18, 2021
@mbercx mbercx added this to To do in 2021-07 via automation Jul 18, 2021
@csadorf
Copy link
Member

csadorf commented Jul 19, 2021

I think we should probably block the submission.

@csadorf csadorf changed the title ❓ QUESTION: What if the user asks to do pretty much nothing? Block the submission of calculations that would not actually do anything Aug 10, 2021
@csadorf csadorf removed the question Further information is requested label Aug 10, 2021
@csadorf csadorf added this to the Public Release milestone Oct 4, 2021
@csadorf csadorf self-assigned this Oct 4, 2021
@csadorf csadorf added the enhancement New feature or request label Oct 4, 2021
csadorf added a commit that referenced this issue Oct 26, 2021
For now either any relaxation or the calculation of bands must be
selected.

Fixes #97.
csadorf added a commit that referenced this issue Oct 28, 2021
For now either any relaxation or the calculation of bands must be
selected.

Fixes #97.
csadorf added a commit that referenced this issue Oct 28, 2021
…ng. (#139)

For now either any relaxation or the calculation of bands must be
selected.

Fixes #97.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/important
Projects
No open projects
2021-07
To do
Development

Successfully merging a pull request may close this issue.

2 participants