[yt-svn] commit/yt: ngoldbaum: Merged in MatthewTurk/yt (pull request #2209)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jun 8 08:05:03 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/dfd64d514138/
Changeset:   dfd64d514138
Branch:      yt
User:        ngoldbaum
Date:        2016-06-08 15:04:49+00:00
Summary:     Merged in MatthewTurk/yt (pull request #2209)

Make DarkMatterARTDataset more robust in its _is_valid
Affected #:  2 files

diff -r 023bffb03ceb52b06b0e821ea481c660006502d3 -r dfd64d5141389dbad512ad547ee5983876f8cf68 yt/frontends/art/api.py
--- a/yt/frontends/art/api.py
+++ b/yt/frontends/art/api.py
@@ -17,7 +17,8 @@
       ARTDomainFile,\
       ARTDomainSubset,\
       ARTIndex,\
-      ARTDataset
+      ARTDataset, \
+      DarkMatterARTDataset
 
 from .fields import \
       ARTFieldInfo

diff -r 023bffb03ceb52b06b0e821ea481c660006502d3 -r dfd64d5141389dbad512ad547ee5983876f8cf68 yt/frontends/art/data_structures.py
--- a/yt/frontends/art/data_structures.py
+++ b/yt/frontends/art/data_structures.py
@@ -633,6 +633,10 @@
             return False
         if not f.endswith(suffix):
             return False
+        if "s0" not in f:
+            # ATOMIC.DAT, for instance, passes the other tests, but then dies
+            # during _find_files because it can't be split.
+            return False
         with open(f, 'rb') as fh:
             try:
                 amr_prefix, amr_suffix = filename_pattern['amr']

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