Skip to content

Commit

Permalink
Format to Black
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Nov 7, 2024
1 parent 7ad6d72 commit 3660c4d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dnachisel/builtin_specifications/EnforceMeltingTemperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ..Specification import Specification, SpecEvaluation



class EnforceMeltingTemperature(Specification):
"""Ensure that the subsequence's Tm is in a certain segment/target.
Expand Down Expand Up @@ -39,13 +38,11 @@ class EnforceMeltingTemperature(Specification):

shorthand_name = "tm"

def __init__(
self, mini=None, maxi=None, target=None, location=None, boost=1.0
):
def __init__(self, mini=None, maxi=None, target=None, location=None, boost=1.0):
"""Initialize."""
if isinstance(mini, str) and mini.endswith('C'):
if isinstance(mini, str) and mini.endswith("C"):
# PROCESS CASES "45-55%" and "45%"
split = mini[:-1].split('-')
split = mini[:-1].split("-")
if len(split) == 2:
mini, maxi = float(split[0]), float(split[1])
else:
Expand Down

0 comments on commit 3660c4d

Please sign in to comment.