Skip to content

Commit 585e652

Browse files
committed
Issue #335 - Make Seq sequence id optional on initialization
Seq no longer tries to cast the sequence `id` argument on initialization so creating a new Seq without an id is valid. This is useful when creating a Seq from a binary encoded sequence file in which the sequence id is encoded. By default, it will parse this out for you. Resolve #335
1 parent 0a208c2 commit 585e652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ait/core/seq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__ (self, pathname=None, cmddict=None, id=None, version=0, **kwargs):
5454
self.pathname = pathname
5555
self.cmddict = cmddict or cmd.getDefaultCmdDict()
5656
self.crc32 = None
57-
self.seqid = int(id)
57+
self.seqid = id
5858
self.lines = [ ]
5959
self.header = { }
6060
self.version = version

0 commit comments

Comments
 (0)