Traceback (most recent call last):
File "convert_nev.py", line 11, in
File "/Users/kghose/Experiments/Python/nev.py", line 270, in fragment
IOError: [Errno 24] Too many open files: '../Neural/DJ2009/20090320//Frag//electrode64unit02.bin'
Whaaa? Whats all this? Well, it turns out you can't have too many files open at the same time. And the
resourcemodule can tell you exactly how many files you can have open at a given time:
Which means the current soft limit is 256 files and the hard limit is some number so large only astronomers and people who write stimulus bills can deal with it. And so for my application, I can change the limit by doing:
(-1 means set the hard limit to the maximum possible)