Skip to content

Commit

Permalink
BUG: libdcd now properly handles missing input file on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjereddy authored and kain88-de committed May 31, 2018
1 parent 347f60f commit 9675f92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/MDAnalysis/lib/formats/libdcd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ cdef class DCDFile:
self.close()

if mode == 'r':
if not path.isfile(self.fname):
raise IOError("DCD file does not exist")
fio_mode = FIO_READ
elif mode == 'w':
fio_mode = FIO_WRITE
Expand Down

0 comments on commit 9675f92

Please sign in to comment.