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

Protocols: Set default of clean_workdir to False? #915

Closed
mbercx opened this issue Apr 15, 2023 · 1 comment · Fixed by #919
Closed

Protocols: Set default of clean_workdir to False? #915

mbercx opened this issue Apr 15, 2023 · 1 comment · Fixed by #919

Comments

@mbercx
Copy link
Member

mbercx commented Apr 15, 2023

Currently, the default value of clean_workdir is set to True for all workflow protocols. I'm wondering if we should use False as the default instead (which is also the default used when specifying the input). Although it is often desirable to clean the working directory, the fact that is the default may be confusing and/or frustrating for new users. Example use cases:

Use case A

A user has run an scf calculation using the PwBaseWorkChain (as should be recommended), and wants to run a bands calculation on top. Putting the scf remote_folder as the parent_folder of the bands run won't work, since the default is to clean the working directory and the charge density is (sensibly) not retrieved. The user might even try this, but it will fail because the directory is not there.

Use case B

The user has run a bunch of scf calculations using the PwBaseWorkChain, and now wants to do some manual operations, e.g.:

  • Explore some of the output files after having learned of verdi calcjob gotocomputer.
  • Store some non-retrieved files (e.g. charge densities, wave functions) on a persistent partition of the computer.

Since the default is to clean the working directory, these files are lost, and the user might not immediately even understand why.

Conclusion

I think when setting defaults, it's best to err on the side of caution. Unless the user is running a lot of calculations, not cleaning the working directory has little side effects and can be performed manually. So I would set the clean_workdir default to False in the protocols.

@sphuber
Copy link
Contributor

sphuber commented Apr 16, 2023

I agree, fine to change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants