amuse icon indicating copy to clipboard operation
amuse copied to clipboard

writing subsets of grids in code not working w/o copy

Open ipelupessy opened this issue 9 years ago • 2 comments

the following works:

from amuse.io import write_set_to_file
from amuse.datamodel import Grid
g=Grid(10,10,10)
g.z=1
sg=g[1:5,2:5,:]
write_set_to_file(sg,"subgrid","amuse")

but the write_set_to_file seems to break when sg is a subgrid of an in-code grid, you need sg.copy() first...

ipelupessy avatar Apr 25 '16 15:04 ipelupessy

needs to be checked

ipelupessy avatar Mar 12 '22 16:03 ipelupessy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 11 '22 17:05 stale[bot]