[SciPy-user] Saving Data as Modul!!
a.u.r.e.l.i.a.n at gmx.net
Mon Nov 6 12:17:30 CST 2006
> Actually I've done what Volker asks in several different ways, although
> none of the solutions is general enough to post here. The most fun
> instance was saving electrophysiology recordings to a .py file such that
> I could double-click the file and have the __main__ function plot the
> data! In fact, now that I think about it, I've constructed most of my
> examples to operate in this way -- run the .py file as a script and see
> the data it contains in some kind of visualization. "import" it and use
> it in another module. The nice thing about making it a module is that it
> goes along for the ride with distutils without you having to even think
> about it.
Actually I had similar thoughts recently. However I did not think about
storing everything into a .py file, I was more along the line of storing a
chunk of plotting code with the data.
How do you deal with large arrays? Do you store them as ASCII data or as
binary string? If second, how?
More information about the SciPy-user