[yt-svn] commit/yt: chummels: Merged in ngoldbaum/yt (pull request #1759)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Sep 21 11:25:39 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/1b2e3c8f0651/
Changeset:   1b2e3c8f0651
Branch:      yt
User:        chummels
Date:        2015-09-21 18:25:25+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1759)

Ensure ARTIOIndex.get_smallest_dx() returns a quantity with units
Affected #:  1 file

diff -r e0ad1eb4f64d42961351e74c5dff346104ef45f1 -r 1b2e3c8f06513c173ff9af77abc5c42be6e8b7a9 yt/frontends/artio/data_structures.py
--- a/yt/frontends/artio/data_structures.py
+++ b/yt/frontends/artio/data_structures.py
@@ -178,7 +178,8 @@
         """
         Returns (in code units) the smallest cell size in the simulation.
         """
-        return  1.0/(2**self.max_level)
+        return (self.dataset.domain_width /
+                (self.dataset.domain_dimensions * 2**(self.max_level))).min()
 
     def convert(self, unit):
         return self.dataset.conversion_factors[unit]

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