I was able to pass the test using my code from BA5H, but there is still something about sims.py which I don't understand.
Here is the test harness from BA5H:
if name=='main':
import timeit
with open('sims.txt',"w") as f:
start_time = timeit.default_timer()
strings = create_strings(fasta=True)
d,s1,t1 = ba5h(strings[0],strings[1])
print ('Score = {0}'.format(d))
print (s1)
print (t1)
f.write(f'{d}\n')
f.write(f'{s1}\n')
f.write(f'{t1}\n')
print ('Elapsed Time = {0}'.format(timeit.default_timer() - start_time))
I was able to pass the test using my code from BA5H, but there is still something about sims.py which I don't understand. Here is the test harness from BA5H: if name=='main': import timeit with open('sims.txt',"w") as f: start_time = timeit.default_timer()
strings = create_strings(fasta=True)
d,s1,t1 = ba5h(strings[0],strings[1])
print ('Score = {0}'.format(d)) print (s1) print (t1) f.write(f'{d}\n') f.write(f'{s1}\n') f.write(f'{t1}\n') print ('Elapsed Time = {0}'.format(timeit.default_timer() - start_time))