Skip to content

Commit

Permalink
spelling errors & do not return display obj
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Nov 25, 2016
1 parent 09f3302 commit 9496f64
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pydna/dsdna.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@
from pydna._pretty import pretty_str, pretty_string #, pretty_unicode

try:
from IPython.display import Markdown as display
from IPython.display import display, Markdown
except ImportError:
def display(item): return item
Markdown=display

def rc(sequence):
'''returns the reverse complement of sequence (string)
Expand Down Expand Up @@ -1693,7 +1694,7 @@ def cseguid(self):
Only defined for circular sequences.
The cSEGUID checksum uniqely identifies a circular
The cSEGUID checksum uniquely identifies a circular
sequence regardless of where the origin is set.
The two Dseqrecord objects below are circular
permutations.
Expand All @@ -1720,7 +1721,7 @@ def lseguid(self):
Only defined for linear double stranded sequences.
The lSEGUID checksum uniqely identifies a linear
The lSEGUID checksum uniquely identifies a linear
sequence independent of the direction.
The two Dseqrecord objects below are each others
reverse complements, so they do in fact refer to
Expand Down Expand Up @@ -2020,7 +2021,8 @@ def write(self, filename=None, f="gb"):

else:
raise Exception("filename has to be a string, got", type(filename))
return display(result)
display(Markdown(result))
return


def __str__(self):
Expand Down

0 comments on commit 9496f64

Please sign in to comment.