Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8239f3

Browse files
committed
BUG: fixed bug in varian.py
1 parent ce094a3 commit a8239f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nmrglue/fileio/varian.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def read(dir=".", fid_file="fid", procpar_file="procpar", read_blockhead=False,
257257
write : Write Agilent/Varian files.
258258
259259
"""
260-
if os.path.isdir(dir) is True:
260+
if os.path.isdir(dir) is False:
261261
raise IOError("directory %s does not exist" % (dir))
262262

263263
# read in the procpar file
@@ -319,7 +319,7 @@ def read_lowmem(dir=".", fid_file="fid", procpar_file="procpar",
319319
write_lowmem : Write Agilent/Varian files using mimimal memory
320320
321321
"""
322-
if os.path.isdir(dir) is not True:
322+
if os.path.isdir(dir) is False:
323323
raise IOError("directory %s does not exist" % (dir))
324324

325325
# read in the procpar file

0 commit comments

Comments
 (0)