[yt-svn] commit/yt: MatthewTurk: Setting a default for lrefine_min, which looks to be not always present in

Bitbucket commits-noreply at bitbucket.org
Sat Jul 28 12:34:50 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/2ace6373d8a3/
changeset:   2ace6373d8a3
branch:      yt
user:        MatthewTurk
date:        2012-07-28 21:34:41
summary:     Setting a default for lrefine_min, which looks to be not always present in
FLASH4.
affected #:  1 file

diff -r b57b604c87cd77995291a7be755b3c57dd841963 -r 2ace6373d8a3b35550e425519bed86ac09b98464 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -373,7 +373,7 @@
             [self.parameters["%smin" % ax] for ax in 'xyz']).astype("float64")
         self.domain_right_edge = na.array(
             [self.parameters["%smax" % ax] for ax in 'xyz']).astype("float64")
-        self.min_level = self.parameters["lrefine_min"] -1
+        self.min_level = self.parameters.get("lrefine_min", 1) - 1
 
         # Determine domain dimensions
         try:

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