Skip to content

Commit

Permalink
Updated InitialRead() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dmroeder committed Feb 18, 2017
1 parent 99725db commit 2add7be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
02/17/17
-Updated InitialRead usage

02/12/17
-Cleaned up _connect() and it's usage

Expand Down
6 changes: 3 additions & 3 deletions eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _readTag(self, tag, elements):
if not _connect(self): return None

t,b,i = TagNameParser(tag, 0)
if not InitialRead(self, t, b): return None
InitialRead(self, t, b)

if self.KnownTags[b][0] == 211:
tagData = _buildTagIOI(self, tag, isBoolArray=True)
Expand All @@ -173,7 +173,7 @@ def _writeTag(self, tag, value, elements):
if not _connect(self): return None

t,b,i = TagNameParser(tag, 0)
if not InitialRead(self, t, b): return None
InitialRead(self, t, b)

dataType = self.KnownTags[b][0]

Expand Down Expand Up @@ -217,7 +217,7 @@ def _multiRead(self, args):

for i in xrange(tagCount):
t,b,i = TagNameParser(args[i], 0)
if not InitialRead(self, t, b): return None
InitialRead(self, t, b)

tagIOI = _buildTagIOI(self, t, isBoolArray=False)
readIOI = _addReadIOI(self, tagIOI, 1)
Expand Down

0 comments on commit 2add7be

Please sign in to comment.