Skip to content

Commit

Permalink
Update construct.py
Browse files Browse the repository at this point in the history
  • Loading branch information
marc310896 authored Sep 9, 2024
1 parent c87060b commit 0777449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poresim/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ def _pos_dat(self):
with open(self._box_path +"_gro/" + "position_{}_{}.dat".format(pore_id,mol), "w") as file_out:
for i in range(int(self._mols[mol][0]/2)):
out_string = str(self._pore_props[pore_id]["parameter"]["centroid"][0]) + " "
out_string += str(self._pore_props[pore_id]["parameter"]["centroid"][1]-self._pore_props[pore_id]["parameter"]["diameter"]/2*0.75) + " "
out_string += str(self._pore_props[pore_id]["parameter"]["centroid"][1]-self._pore_props[pore_id]["parameter"]["height"]/2*0.75) + " "
out_string += str(self._pore_props["system"]["reservoir"] + self._pore_props[pore_id]["parameter"]["centroid"][2]) + "\n"
file_out.write(out_string)
for i in range(int(self._mols[mol][0]/2)):
out_string = str(self._pore_props[pore_id]["parameter"]["centroid"][0]) + " "
out_string += str(self._pore_props[pore_id]["parameter"]["centroid"][1]+self._pore_props[pore_id]["parameter"]["diameter"]/2*0.75) + " "
out_string += str(self._pore_props[pore_id]["parameter"]["centroid"][1]+self._pore_props[pore_id]["parameter"]["height"]/2*0.75) + " "
out_string += str(self._pore_props["system"]["reservoir"] + self._pore_props[pore_id]["parameter"]["centroid"][2]) + "\n"
file_out.write(out_string)

Expand Down

0 comments on commit 0777449

Please sign in to comment.