[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 21 11:25:36 PDT 2015
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/bcb5d3047eb9/
Changeset: bcb5d3047eb9
Branch: yt
User: ngoldbaum
Date: 2015-09-18 19:28:46+00:00
Summary: Ensure ARTIOIndex.get_smallest_dx() returns a quantity with units
Affected #: 1 file
diff -r f818f29712491ce9f597decaea69297a06603393 -r bcb5d3047eb91c5691bc154f8703339dccf29727 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]
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