Commit 36345f6a authored by ssomnath's avatar ssomnath
Browse files

Added check for zero sized files

parent 17de4c87
......@@ -221,7 +221,10 @@ class BEodfTranslator(Translator):
imag_size = path.getsize(path_dict['write_imag'])
if real_size != imag_size:
raise ValueError("Real and imaginary file sizes DON'T match!. Ending")
raise ValueError("Real and imaginary file sizes do not match!")
if real_size == 0:
raise ValueError('Real and imaginary files were empty')
# Check here if a second channel for current is present
# Look for the file containing the current data
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment