Skip to content

Commit

Permalink
Fix blank lines in gaussian system format
Browse files Browse the repository at this point in the history
  • Loading branch information
bennybp committed Jul 29, 2024
1 parent 422374f commit 3d51a69
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 3d51a69

Please sign in to comment.