Skip to content

Commit

Permalink
Merge pull request #315 from MolSSI-BSE/fix_g94lib
Browse files Browse the repository at this point in the history
Fix blank lines in gaussian system format
  • Loading branch information
bennybp authored Jul 30, 2024
2 parents e1a0316 + 3d51a69 commit eacdd02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion basis_set_exchange/writers/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ def write_formatted_basis_str(basis_dict, fmt, header=None):
if header is not None and _writer_map[fmt]['comment'] is not None:
comment_str = _writer_map[fmt]['comment']
header_str = comment_str + comment_str.join(header.splitlines(True))
ret_str = header_str + '\n\n' + ret_str

# HACK - Gaussian94Lib doesn't tolerate blank lines after the header
if fmt == 'gaussian94lib':
ret_str = header_str + ret_str
else:
ret_str = header_str + '\n\n' + ret_str

# HACK - Psi4 requires the first non-comment line be spherical/cartesian
# so we have to add that before the header
Expand Down

0 comments on commit eacdd02

Please sign in to comment.