astrofrog/idlsave — Issue #5: Error: invalid mode ('rb') 
Author: OthmanB
Created: 2012-01-09 04:43:09+00:00
State: open

Hi,

I have the following issue with some files only (IDL version issue?).

Cheers,

Othman Benomar

s=idlsave.read('n_param1.sav')
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
C:\Users\Benomar\.xy\startups\ in ()
C:\Python26\lib\site-packages\idlsave\idlsave.pyc in read(file_name, idict, python_dict, uncompressed_file_name, verbose)
624
625 # Open the IDL file
--> 626 f = file(file_name, 'rb')
627
628 # Read the signature, which should be 'SR'
IOError: [Errno 22] invalid mode ('rb') or filename: 'C:\\Work_dir\\Spectre_Simu_These\\RH_MCMC_example\\simu_samples\n_param1.sav'