Skip to content

Commit

Permalink
Fix handling of val.size == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 17, 2015
1 parent 0b3c123 commit 0a68079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oct2py/matread.py
Expand Up @@ -146,7 +146,7 @@ def get_data(val):
elif val.size == 1:
if hasattr(val, 'flatten'):
val = val.flatten()[0]
if val.size == 0:
elif val.size == 0:
if val.dtype.kind in 'US':
val = ''
else:
Expand Down

0 comments on commit 0a68079

Please sign in to comment.