Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code refactoring #429

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use join
  • Loading branch information
tosemml committed Aug 23, 2023
commit c651d2b124535f85b80e721a171c5541a2ffdca0
4 changes: 1 addition & 3 deletions qcengine/mdi_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ def recv_natoms(self, natoms: Optional[int] = None) -> None:
if natoms is None:
natoms = MDI_Recv(1, MDI_INT, self.comm)

mol_string = ""
for iatom in range(natoms):
mol_string += "He " + str(1.0 * iatom) + " 0.0 0.0\n"
mol_string = " 0.0 0.0\n".join(["He " + str(1.0 * iatom) for iatom in range(natoms)])
self.molecule = qcel.models.Molecule.from_data(mol_string)

self.energy_is_current = False
Expand Down