[yt-svn] commit/yt: migueldvb: Fixes TypeError for old FLASH files
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Feb 19 01:56:53 PST 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/61e6b84f875c/
Changeset: 61e6b84f875c
Branch: yt
User: migueldvb
Date: 2014-02-19 04:16:02
Summary: Fixes TypeError for old FLASH files
Closes #784
Affected #: 1 file
diff -r 8848f84e72e5466d0c9d4e9aaca6a1e391fa6014 -r 61e6b84f875cc8fcf25b5b1e67ddd501a19daf68 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -422,7 +422,7 @@
self.domain_right_edge = np.array(
[self.parameters["%smax" % ax] for ax in 'xyz']).astype("float64")
if self.dimensionality < 3:
- for d in (dimensionality)+range(3-dimensionality):
+ for d in [dimensionality]+range(3-dimensionality):
if self.domain_left_edge[d] == self.domain_right_edge[d]:
mylog.warning('Identical domain left edge and right edges '
'along dummy dimension (%i), attempting to read anyway' % d)
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