some small but important changes: all files except the final surfinfo are now stored in a per-session tempfile, so they don't permanently clutter the db but are still safe for multiple sessions. some unneeded parameters and imports were removed. additional comments were added, and the do parameter, which allows the function to be run in dummy mode if False.
some small but important changes: all files except the final surfinfo are now stored in a per-session tempfile, so they don't permanently clutter the db but are still safe for multiple sessions. some unneeded parameters and imports were removed. additional comments were added, and the do parameter, which allows the function to be run in dummy mode if False.

smerdis/pycortex,smerdis/pycortex,smerdis/pycortex,smerdis/pycortex,smerdis/pycortex