fread (from numpyio) and stderr redirection...
June 11, 2007
12:32 a.m.
Hi, I want to test that data read from file with fread has exactly the right dimensions. - if less bytes are read that the required number of bytes, how can it be detected ? - if more bytes are tried to read, fread returns a warning message that I don't want to be displayed. How can I do this ? I have attached a sample file that shows the three cases: - data read from file has the right dimension: ok - data read from file has 1 byte instead of 2: no detection error - try to read from file 3 bytes instead of 2: warning message displayed Any suggestion ? Thanks in advance. -- http://scipy.org/FredericPetit
6939
Age (days ago)
6939
Last active (days ago)
0 comments
1 participants
participants (1)
-
fred