galaunay/pytisean

Issue with tmp files

Opened this issue · 1 comments

I tried to run test.py and had a problem reading tmp files, whether output was explicit or not. My code ended up following every command
xy = ptx.henonorsomething(..., output_file="/tmp/hrmm")
with
xy = np.loadtxt("/tmp/hrmm")
This may be an OS X issue, or a py3.6 issue. I don't know how to diagnose it, but I'm happy to answer questions.

Additionally, and possibly related, and much more frustrating (enough that I'm switching to the competing pytisean wrapper for now), is that stp is reading from the same expired tmp file now matter what tmp file I write to, with the result that very different datasets look the same, in a way that took forever to diagnose. Also happy to help you resolve this if you have any questions.

Happy to see that somebody can have a use of this.

Regarding your first issue, I made a commit (1268bd0).
Let me know if it is not fixed.

I am not sure to understand your second issue.
I tried those lines:

    # Generate 5000 iterates of the henon map
    xy1 = ptg.henon(5000, output_file="/home/glaunay/tmp/henon.data")
    # Generate 10000 iterates of the lorentz map
    xy2 = ptg.lorenz(10000, output_file="/home/glaunay/tmp/lorenz.data")

    # Use stp
    stp1 = pts.stp("/home/glaunay/tmp/henon.data")
    stp2 = pts.stp("/home/glaunay/tmp/lorenz.data")

And it gives me different results, as expected.

Could you provide a non-working script, to see if I can reproduce the error ?