[yt-svn] commit/yt: ngoldbaum: Merged in MatthewTurk/yt (pull request #2370)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Sep 21 13:05:00 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/3c53eabd6afd/
Changeset: 3c53eabd6afd
Branch: yt
User: ngoldbaum
Date: 2016-09-21 20:04:34+00:00
Summary: Merged in MatthewTurk/yt (pull request #2370)
Don't try to read non-existent tipsy auxiliarry files
Affected #: 1 file
diff -r 779b91714ae713783313de0932f459f78bd34a31 -r 3c53eabd6afdccb7bfc120884ff5014dfa599a2d yt/frontends/tipsy/io.py
--- a/yt/frontends/tipsy/io.py
+++ b/yt/frontends/tipsy/io.py
@@ -321,8 +321,12 @@
tot_parts = np.sum(list(data_file.total_particles.values()))
endian = data_file.ds.endian
self._aux_pdtypes = {}
- self._aux_fields = [f.rsplit('.')[-1]
- for f in glob.glob(data_file.filename + '.*')]
+ self._aux_fields = []
+ for f in glob.glob(data_file.filename + '.*'):
+ afield = f.rsplit('.')[-1]
+ filename = data_file.filename + '.' + afield
+ if not os.path.exists(filename): continue
+ self._aux_fields.append(afield)
for afield in self._aux_fields:
filename = data_file.filename + '.' + afield
# We need to do some fairly ugly detection to see what format the
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