copy_cp2k_outputs

atomate2.cp2k.files.copy_cp2k_outputs(src_dir, src_host=None, additional_cp2k_files=None, restart_to_input=True, file_client=None)[source]

Copy CP2K output files to the current directory.

For folders containing multiple calculations (e.g., suffixed with relax1, relax2, etc), this function will only copy the files with the highest numbered suffix and the suffix will be removed. Additional cp2k files will be also be copied with the same suffix applied. Lastly, this function will gunzip any gzipped files.

Parameters:
  • src_dir (str or Path) – The source directory.

  • src_host (str or None) – The source hostname used to specify a remote filesystem. Can be given as either “username@remote_host” or just “remote_host” in which case the username will be inferred from the current user. If None, the local filesystem will be used as the source.

  • additional_cp2k_files (list of str) – Additional files to copy

  • restart_to_input (bool) – Move the cp2k restart file to by the cp2k input in the new directory

  • file_client (.FileClient) – A file client to use for performing file operations.

Return type:

None