[yt-svn] commit/yt: MatthewTurk: Adding a trap for not being able to find 'gamma'. This is a stopgap until we
Bitbucket
commits-noreply at bitbucket.org
Wed Feb 15 12:10:49 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/48ac4d17195b/
changeset: 48ac4d17195b
branch: yt
user: MatthewTurk
date: 2012-02-15 21:10:41
summary: Adding a trap for not being able to find 'gamma'. This is a stopgap until we
have the full parameter set pulled in.
affected #: 1 file
diff -r 72aa1b94c617017334e7b613cbebee265b13cfac -r 48ac4d17195b660c6a422477c2124d789d0052da yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -334,7 +334,10 @@
self.domain_dimensions = \
na.array([nblockx*nxb,nblocky*nyb,nblockz*nzb])
- self.parameters['Gamma'] = self._find_parameter("real", "gamma")
+ try:
+ self.parameters['Gamma'] = self._find_parameter("real", "gamma")
+ except KeyError:
+ pass
if self._flash_version == 7:
self.current_time = float(
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