Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading particle sets increases rank of linked attributes #36

Closed
ipelupessy opened this issue Feb 10, 2016 · 3 comments
Closed

loading particle sets increases rank of linked attributes #36

ipelupessy opened this issue Feb 10, 2016 · 3 comments

Comments

@ipelupessy
Copy link
Member

see the following example:

    from amuse.datamodel import Particles
    from amuse.io import write_set_to_file,read_set_from_file
    p=Particles(10)
    q=Particles(3)
    q[0].link=p[1]
    q[1].link=p[3]
    q[2].link=p[4]
    print q.link
    write_set_to_file(q,"test","amuse",version=2)
    r=read_set_from_file("test","amuse")
    print r.link

first print gives [..] while second one gives [[...]]

@rieder
Copy link
Member

rieder commented Mar 10, 2017

Could this be due to the support for multiple timestamps in the savefile?

@ipelupessy
Copy link
Member Author

this actually breaks some tests in combination with the new default storage version, e.g. test_smalln.py test16

@ipelupessy
Copy link
Member Author

fixed by commit 368b2d4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants