[yt-svn] commit/yt: MatthewTurk: Merged in ngoldbaum/yt/yt-3.0 (pull request #1010)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sat Jul 12 07:28:55 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/dc4dbbeec944/
Changeset:   dc4dbbeec944
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-07-12 16:28:47
Summary:     Merged in ngoldbaum/yt/yt-3.0 (pull request #1010)

Generate index for tipsy if we cannot infer domain boundaries from metadata.  Closes #815.
Affected #:  1 file

diff -r 1a47e73ec267b98ead72a5dd02b89aa045ecb25d -r dc4dbbeec944437ffbb5861c74aec51722db2a29 yt/frontends/sph/data_structures.py
--- a/yt/frontends/sph/data_structures.py
+++ b/yt/frontends/sph/data_structures.py
@@ -508,6 +508,13 @@
 
         f.close()
 
+    def _set_derived_attrs(self):
+        if self.domain_left_edge is None or self.domain_right_edge is None:
+            self.domain_left_edge = np.nan
+            self.domain_right_edge = np.nan
+            self.index
+        super(TipsyDataset, self)._set_derived_attrs()
+
     def _set_code_unit_attributes(self):
         if self.cosmological_simulation:
             mu = self.parameters.get('dMsolUnit', 1.)

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