Skip to content

Commit

Permalink
Fix MDCINT file not found issue
Browse files Browse the repository at this point in the history
"MDCIN*" has no path info, so glob.glob("MDCIN*") returns an empty list
  • Loading branch information
kohei-noda-qcrg authored Dec 23, 2023
1 parent 51fb97b commit eba5003
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/dcaspt2_input
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,11 @@ def copy_essential_files_to_scratch_dir(args: "argparse.Namespace", input_file_p
if args.ivo:
scratch_dfpcmo_path = scratch_dir / "DFPCMO"
scratch_dfpcmo_path.symlink_to(integrals_dir / "DFPCMO")
for file in glob.glob("MDCIN*"):
scratch_mdcint_path = Path(scratch_dir, file)
scratch_mdcint_path.symlink_to(integrals_dir / file)
mdcints = integrals_dir / "MDCIN*"
for file in glob.glob(str(mdcints)):
file_name = Path(file).name
scratch_mdcint_path = Path(scratch_dir, file_name)
scratch_mdcint_path.symlink_to(integrals_dir / file_name)
print("log : Copied 1-2 integral files to the scratch directory")
return None

Expand Down

0 comments on commit eba5003

Please sign in to comment.