Saving as .txt file


Trevor -

You’ve been very helpful. I’m running the programs in Jupyter notebooks. I think the last step - for a while - is to get the sim. data out into a form I can analyze in windows programs.

I wrote z = str(
and if I print z to the screen I get all the data …

but I haven’t been quite able to redirect this to a .txt file I can manipulate and analyze.




You can use the numpy.savetxt function to save simulation data to text files.




Howard Crystal, MD
Professor of Neurology, Pathology, and Psychiatry
SUNY Downstate
P: 718-270-2748, F: 718-221-5761