Skip to content

Commit 3fcfec4

Browse files
committed
Add additional error messages to catch the 'whoops, I meant .fast5, not .fa' situation
1 parent 5109c4d commit 3fcfec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

porejuicer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ def generate_raw(fileName, callID="000", medianWindow=21):
319319
h5File = h5py.File(fileName, 'r')
320320
h5File.close()
321321
except:
322+
sys.stderr.write("Unable to open file '%s' as a fast5 file\n" % fileName)
322323
return False
323324
with h5py.File(fileName, 'r') as h5File:
324325
runMeta = h5File['UniqueGlobalKey/tracking_id'].attrs

0 commit comments

Comments
 (0)