Fix my formatting mistakes.

Python formatting makes me miss K&R C.
This commit is contained in:
Nathan Baker
2020-05-29 20:37:47 -07:00
parent b54190ef27
commit 83a7099d79

View File

@@ -203,10 +203,9 @@ def get_summary_section(protein, conformation, parameters):
return str_ return str_
def get_folding_profile_section(protein, conformation='AVR', def get_folding_profile_section(
direction="folding", reference="neutral", protein, conformation='AVR', direction="folding", reference="neutral",
window=[0., 14., 1.0], _=False, window=[0., 14., 1.0], _=False, __=None):
__=None):
"""Returns string with the folding profile section of the results. """Returns string with the folding profile section of the results.
Args: Args:
@@ -245,9 +244,9 @@ def get_folding_profile_section(protein, conformation='AVR',
dg_opt)) dg_opt))
if dg_min is None or dg_max is None: if dg_min is None or dg_max is None:
str_ += "Could not determine pH values where the free energy" str_ += "Could not determine pH values where the free energy"
str_ += " is within 80 %% of minimum\n" str_ += " is within 80 % of minimum\n"
else: else:
str_ += "The free energy is within 80 %% of maximum" str_ += "The free energy is within 80 % of maximum"
str_ += " at pH {0:>4.1f} to {1:>4.1f}\n".format(dg_min, dg_max) str_ += " at pH {0:>4.1f} to {1:>4.1f}\n".format(dg_min, dg_max)
if ph_min is None or ph_max is None: if ph_min is None or ph_max is None:
str_ += "Could not determine the pH-range where the free" str_ += "Could not determine the pH-range where the free"