Skip to content

Commit 2bca127

Browse files
committed
autopep8 --in-place --select E305 Bio/*.py
1 parent fd1c57a commit 2bca127

7 files changed

Lines changed: 9 additions & 0 deletions

File tree

Bio/DocSQL.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def _test(*args, **keywds):
225225
import doctest
226226
doctest.testmod(sys.modules[__name__], *args, **keywds)
227227

228+
228229
if __name__ == "__main__":
229230
if __debug__:
230231
_test()

Bio/Index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,5 @@ def _toobj(self, str):
143143
intlist = array.array('b', intlist)
144144
return pickle.loads(''.join(chr(i) for i in intlist))
145145

146+
146147
Index = _InMemoryIndex

Bio/MarkovModel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def itemindex(values):
5050
d[key] = n - index
5151
return d
5252

53+
5354
numpy.random.seed()
5455

5556
VERY_SMALL_NUMBER = 1E-300
@@ -198,6 +199,7 @@ def train_bw(states, alphabet, training_data,
198199
p_initial, p_transition, p_emission = x
199200
return MarkovModel(states, alphabet, p_initial, p_transition, p_emission)
200201

202+
201203
MAX_ITERATIONS = 1000
202204

203205

Bio/MaxEntropy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ class assignments for each observation. feature_fns is a list of
316316

317317
return me
318318

319+
319320
if __name__ == "__main__":
320321
from Bio._utils import run_doctest
321322
run_doctest(verbose=0)

Bio/Seq.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def _maketrans(complement_mapping):
5656
else:
5757
return string.maketrans(before, after)
5858

59+
5960
_dna_complement_table = _maketrans(ambiguous_dna_complement)
6061
_rna_complement_table = _maketrans(ambiguous_rna_complement)
6162

@@ -2276,5 +2277,6 @@ def _test():
22762277
doctest.testmod(optionflags=doctest.IGNORE_EXCEPTION_DETAIL)
22772278
print("Done")
22782279

2280+
22792281
if __name__ == "__main__":
22802282
_test()

Bio/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,6 @@ def run_doctest(target_dir=None, *args, **kwargs):
116116
os.chdir(cur_dir)
117117
print("Done")
118118

119+
119120
if __name__ == "__main__":
120121
run_doctest()

Bio/triefind.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def find(string, trie):
7171
start += 1
7272
return results
7373

74+
7475
DEFAULT_BOUNDARY_CHARS = string.punctuation + string.whitespace
7576

7677

0 commit comments

Comments
 (0)