[yt-svn] commit/yt-doc: jsoishi: correted for clarity.

Bitbucket commits-noreply at bitbucket.org
Wed May 9 18:01:29 PDT 2012


1 new commit in yt-doc:


https://bitbucket.org/yt_analysis/yt-doc/changeset/9a2bae29dedf/
changeset:   9a2bae29dedf
user:        jsoishi
date:        2012-05-10 02:56:14
summary:     correted for clarity.
affected #:  1 file

diff -r 5f6cac588d670c9116229c0d458c84f15aea9279 -r 9a2bae29dedf82b8f8ff23ef22f520bcdd8cd759 source/analyzing/objects.rst
--- a/source/analyzing/objects.rst
+++ b/source/analyzing/objects.rst
@@ -374,13 +374,16 @@
    from yt.mods import *
    import shelve
 
+   pf = load("my_data") # not necessary if storeparameterfiles is on
+
    obj_file = shelve.open("my_storage_file.cpkl")
    pf, obj = obj_file["my_sphere"]
 
-Note here that this behaves slightly differently than above -- we do not need
-to load the parameter file ourselves, as the load process actually does that
-for us!  Additionally, we can store multiple objects in a single shelve file,
-so we have to call the sphere by name.
+If you have turned on ``storeparameterfiles`` in your configuration,
+you won't need to load the parameterfile again, as the load process
+will actually do that for you in that case.  Additionally, we can
+store multiple objects in a single shelve file, so we have to call the
+sphere by name.
 
 .. note:: It's also possible to use the standard :mod:`cPickle` module for
           loading and storing objects -- so in theory you could even save a

Repository URL: https://bitbucket.org/yt_analysis/yt-doc/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list