[yt-svn] commit/yt: MatthewTurk: Don't instantiate a given pf twice in FLASH.

Bitbucket commits-noreply at bitbucket.org
Tue Sep 11 15:46:07 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/2a9a5b16f808/
changeset:   2a9a5b16f808
branch:      yt
user:        MatthewTurk
date:        2012-09-12 00:46:01
summary:     Don't instantiate a given pf twice in FLASH.
affected #:  1 file

diff -r 0856364b1b31fd275c861019f3912e79cc7cb51f -r 2a9a5b16f8082413eceafaebfc085d693845db90 yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -208,6 +208,7 @@
                  storage_filename = None,
                  conversion_override = None):
 
+        if self._handle is not None: return
         self._handle = h5py.File(filename, "r")
         if conversion_override is None: conversion_override = {}
         self._conversion_override = conversion_override

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