Skip to content

Commit

Permalink
Refromat properly (fixes CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshpatra committed Nov 29, 2020
1 parent c3bee3e commit b824df3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion PeptideBuilder/PeptideBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ def make_structure_from_geos(geos: List[Geo]) -> Structure:
def add_terminal_OXT(structure: Structure, C_OXT_length: float = 1.23) -> Structure:
"""Adds a terminal oxygen atom ('OXT') to the last residue of chain A model 0 of the given structure, and returns the new structure. The OXT atom object will be contained in the last residue object of the structure.
This function should be used only when the structure object is completed and no further residues need to be appended."""
This function should be used only when the structure object is completed and no further residues need to be appended."""

rad = 180.0 / math.pi

Expand Down
33 changes: 15 additions & 18 deletions examples/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,24 +321,21 @@ def test_PeptideBuilder(pdb_code):
RMS_all_angles_50, RMS_all_angles_150, RMS_all_angles, size = compare_structure(
pdb_file, make_pdb_file(structure_all_angles, "AllAngles_" + pdb_file)
)
output_line = (
"%s\t%i\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\n"
% (
pdb_code,
size,
RMS_phi_psi_50,
RMS_phi_psi_150,
RMS_phi_psi,
RMS_omega_50,
RMS_omega_150,
RMS_omega,
RMS_all_angles_50,
RMS_all_angles_150,
RMS_all_angles,
RMS_backbone_50,
RMS_backbone_150,
RMS_backbone,
)
output_line = "%s\t%i\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\t%0.1f\n" % (
pdb_code,
size,
RMS_phi_psi_50,
RMS_phi_psi_150,
RMS_phi_psi,
RMS_omega_50,
RMS_omega_150,
RMS_omega,
RMS_all_angles_50,
RMS_all_angles_150,
RMS_all_angles,
RMS_backbone_50,
RMS_backbone_150,
RMS_backbone,
)
return output_line

Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
platforms="Tested on Mac OS X and Windows 10",
packages=["PeptideBuilder"],
install_requires=INSTALL_REQUIRES,
extras_require={"test": TEST_REQUIRES + INSTALL_REQUIRES,},
extras_require={
"test": TEST_REQUIRES + INSTALL_REQUIRES,
},
classifiers=[
# Trove classifiers
# (https://pypi.python.org/pypi?%3Aaction=list_classifiers)
Expand Down

0 comments on commit b824df3

Please sign in to comment.