[yt-users] save master_clump object error

Matthew Turk matthewturk at gmail.com
Mon Mar 10 04:05:24 PDT 2014

Hi Juan,

On Sun, Mar 9, 2014 at 9:22 PM, Juan Camilo Ibanez Mejia
<jibanezmejia at amnh.org> wrote:
> Hi there,
> Sorry to come back to an old error already discussed, but I am not able to
> write the master_clump data object.
> I have tried Britton's solution, including the ytcfg['yt', 'serialize'] =
> 'True', and added it to the configuration file as
> Nathan suggested, and I have also pulled Matt's fixes for the
> save_data-load_data into the hierarchy.py file,
> But the call pf.h.save_object(master_clump, 'My_clumps'), is still not
> working, there is nothing being saved
> and when I try to load_object, nothing happens.
> Matt in your last reply you said you where able to run the clump finding in
> the cookbook without any trouble,
> you where able to save and load the Clump object in that test ?

Hm, it looks like I was not -- I just checked.  This is a problem; can
you file an issue?  I think you may be able to do a pickle, though:

import cPickle
with open("my_save.cpkl", "wb") as f:
    cPickle.dump(master_clump, f)


> Thank you for your help,
> best,
> Juan
> _____________________________
> Juan Camilo Ibañez Mejia
> Department of Astrophysics
> American Museum of Natural History
> +1-212-313-7435
> jibanezmejia at amnh.org
> _____________________________
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

More information about the yt-users mailing list