Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Binary file added .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@ tests/output/

# virtual environments
.venv

# Output of polyconf tutorial

polyconf_examples/PEI_linear_*
polyconf_examples/PEI_branched_*
polyconf_examples/PMMA_*
19 changes: 10 additions & 9 deletions polyconf/polyconf/Polymer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def copy(self) -> Polymer:

def renamer(self, resid, namein, nameout='X'):
"""
Change selected atom names to a new name like X1, X2, X3. Intended to
flag dummy atoms for removal. Selected atoms are given a basename,
e.g. 'X' defined by the nameout argument, as well as a number.
Change selected atom names to a new name.
Intended to flag dummy atoms for removal.
Selected atoms are given a basename defined by the nameout argument,
e.g. 'X' , and a number.

:param resid: which residue number to select and rename atoms from
:type resid: int
Expand All @@ -101,8 +102,8 @@ def newresid(self):
:return: the polymer's current highest resid plus one.
:rtype: int
"""
n = max(self.polymer.residues.resids) + 1
return n
n = int(max(self.polymer.residues.resids) + 1)
return (n)


def maxresid(self):
Expand All @@ -112,8 +113,8 @@ def maxresid(self):
:return: the polymer's current highest resid
:rtype: int
"""
n = max(self.polymer.residues.resids)
return n
n = int(max(self.polymer.residues.resids))
return (n)


def extend(self, monomer, n, nn, names, joins, ortho=[1,1,1],
Expand Down Expand Up @@ -195,8 +196,8 @@ def extend(self, monomer, n, nn, names, joins, ortho=[1,1,1],
# cool.
# love that for me.

Q = self.polymer.select_atoms(f'resid {n} and name {names["Q"]}').positions[-1]
S = self.polymer.select_atoms(f'resid {n} and name {names["S"]}').positions[-1]
Q = self.polymer.select_atoms(f"resid {n} and name {names['Q']}").positions[-1]
S = self.polymer.select_atoms(f"resid {n} and name {names['S']}").positions[-1]

u_ = monomer # monomer = mdict['path'][monomer]
u_.atoms.tempfactors=float(beta)
Expand Down
298 changes: 0 additions & 298 deletions polyconf_examples/01_build_PEI_linear.py

This file was deleted.

Loading