[yt-svn] commit/yt: MatthewTurk: Force uploading of pfs.

Bitbucket commits-noreply at bitbucket.org
Mon May 7 19:16:48 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/b75fa8c737a4/
changeset:   b75fa8c737a4
branch:      yt
user:        MatthewTurk
date:        2012-05-08 04:11:40
summary:     Force uploading of pfs.
affected #:  1 file

diff -r c1c90403232b0636bf8473538d26e964427373fb -r b75fa8c737a492f0d08b68b05ce2fb009ab215ea yt/utilities/minimal_representation.py
--- a/yt/utilities/minimal_representation.py
+++ b/yt/utilities/minimal_representation.py
@@ -58,6 +58,7 @@
             setattr(self, attr, getattr(obj, attr, None))
         if hasattr(obj, "pf"):
             self.output_hash = obj.pf._hash()
+            self._pf_mrep = obj.pf._mrep
 
     def __init__(self, obj):
         self._update_attrs(obj, self._attr_list)
@@ -93,6 +94,8 @@
         api_key = ytcfg.get("yt","hub_api_key")
         url = ytcfg.get("yt","hub_url")
         metadata, (final_name, chunks) = self._generate_post()
+        if hasattr(self, "_pf_mrep"):
+            self._pf_mrep.upload()
         for i in metadata:
             if isinstance(metadata[i], na.ndarray):
                 metadata[i] = metadata[i].tolist()

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

--

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