Skip to content

Commit

Permalink
Fix a bug in initialization of mapped random access table readers (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
guanlongzhao authored and dogancan committed Mar 12, 2019
1 parent 38ba694 commit 8a30acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaldi/util/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def __init__(self, table_rspecifier="", map_rspecifier=""):
"""
super(_RandomAccessReaderMappedBase, self).__init__()
if table_rspecifier != "" and map_rspecifier != "":
if not self.Open(table_rspecifier, map_rspecifier):
if not self.open(table_rspecifier, map_rspecifier):
raise IOError("Error opening mapped random access table reader "
"with table_rspecifier: {}, map_rspecifier: {}"
.format(table_rspecifier, map_rspecifier))
Expand Down

0 comments on commit 8a30acb

Please sign in to comment.