[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jun 8 08:05:19 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/a855aadb9e38/
Changeset: a855aadb9e38
Branch: yt
User: MatthewTurk
Date: 2016-06-02 20:21:09+00:00
Summary: Make DarkMatterARTDataset slightly more robust for _is_valid.
Affected #: 2 files
diff -r 331c7ef7049d257043699a8b570cf7bd8c39a82f -r a855aadb9e388904720d62981d557fd183540ca5 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 331c7ef7049d257043699a8b570cf7bd8c39a82f -r a855aadb9e388904720d62981d557fd183540ca5 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']
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