[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Thu Aug 2 14:30:58 PDT 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/946c6690c403/
changeset:   946c6690c403
branch:      yt
user:        MatthewTurk
date:        2012-08-02 23:28:57
summary:     Fixing a NumPy dtype issue in the uploading of metadata for FLASH simulations.
affected #:  1 file

diff -r 6be71495cd039b5b433ff3df7095c77274b0e837 -r 946c6690c4033e304ffa2637573c505d1756c2ff yt/utilities/minimal_representation.py
--- a/yt/utilities/minimal_representation.py
+++ b/yt/utilities/minimal_representation.py
@@ -99,6 +99,8 @@
         for i in metadata:
             if isinstance(metadata[i], na.ndarray):
                 metadata[i] = metadata[i].tolist()
+            elif hasattr(metadata[i], 'dtype'):
+                metadata[i] = na.asscalar(metadata[i])
         metadata['obj_type'] = self.type
         if len(chunks) == 0:
             chunk_info = {'chunks': []}



https://bitbucket.org/yt_analysis/yt/changeset/e55966f1addd/
changeset:   e55966f1addd
branch:      stable
user:        MatthewTurk
date:        2012-08-02 23:28:57
summary:     Fixing a NumPy dtype issue in the uploading of metadata for FLASH simulations.
affected #:  1 file

diff -r 4f3abfe167c0eb7cae09947944877a1e4f86eced -r e55966f1addde8b88e75fbf82d4170e6b4426416 yt/utilities/minimal_representation.py
--- a/yt/utilities/minimal_representation.py
+++ b/yt/utilities/minimal_representation.py
@@ -99,6 +99,8 @@
         for i in metadata:
             if isinstance(metadata[i], na.ndarray):
                 metadata[i] = metadata[i].tolist()
+            elif hasattr(metadata[i], 'dtype'):
+                metadata[i] = na.asscalar(metadata[i])
         metadata['obj_type'] = self.type
         if len(chunks) == 0:
             chunk_info = {'chunks': []}

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