qp.analyze.multiwfn.is_valid_dipole_file¶
- qp.analyze.multiwfn.is_valid_dipole_file(file_path)[source]¶
Check whether a dipole calculation output file is complete.
Multiwfn dipole calculations can sometimes fail or be interrupted. This function checks for the presence of a completion marker in the output file to determine if the calculation finished successfully.
- Parameters:
file_path (str) – Path to the dipole output file (
*_dipole_com.out).- Returns:
True if the file exists and contains the completion marker.
- Return type:
bool