[yt-svn] commit/yt-3.0: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu May 9 06:25:37 PDT 2013


3 new commits in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/6d82df72b1bf/
Changeset:   6d82df72b1bf
Branch:      yt-3.0
User:        sleitner
Date:        2013-05-07 06:07:16
Summary:     answer testing for not big_data
Affected #:  1 file

diff -r 346c728780cb0a4607a16608a8706178a51e1bf3 -r 6d82df72b1bf6f2b01f78e03611a8f62a94d2496 yt/frontends/artio/tests/test_outputs.py
--- /dev/null
+++ b/yt/frontends/artio/tests/test_outputs.py
@@ -0,0 +1,51 @@
+"""
+ARTIO frontend tests 
+
+Author: Samuel Leitner <sam.leitner at gmail.com>
+Affiliation: University of Maryland College Park
+Homepage: http://yt-project.org/
+License:
+  Copyright (C) 2012 Matthew Turk.  All Rights Reserved.
+
+  This file is part of yt.
+
+  yt is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 3 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+"""
+
+from yt.testing import *
+from yt.utilities.answer_testing.framework import \
+    requires_pf, \
+    data_dir_load, \
+    PixelizedProjectionValuesTest, \
+    FieldValuesTest
+from yt.frontends.artio.api import ARTIOStaticOutput
+
+_fields = ("Temperature", "Density", "VelocityMagnitude") 
+
+aiso5 = "artio/aiso_a0.9005.art"
+ at requires_pf(aiso5)
+def test_aiso5():
+    pf = data_dir_load(aiso5)
+    yield assert_equal, str(pf), "aiso_a0.9005.art"
+    dso = [ None, ("sphere", ("max", (0.1, 'unitary')))]
+    for field in _fields:
+        for axis in [0, 1, 2]:
+            for ds in dso:
+                for weight_field in [None, "Density"]:
+                    yield PixelizedProjectionValuesTest(
+                        aiso5, axis, field, weight_field,
+                        ds)
+                yield FieldValuesTest(
+                        aiso5, field, ds)
+


https://bitbucket.org/yt_analysis/yt-3.0/commits/a24afb5197a2/
Changeset:   a24afb5197a2
Branch:      yt-3.0
User:        sleitner
Date:        2013-05-07 06:21:07
Summary:     added empty __init__.py
Affected #:  1 file



https://bitbucket.org/yt_analysis/yt-3.0/commits/7245ec83f282/
Changeset:   7245ec83f282
Branch:      yt-3.0
User:        MatthewTurk
Date:        2013-05-09 15:25:30
Summary:     Merged in sleitner/yt-3.0-answertest (pull request #34)

ARTIO answer testing for not big_data
Affected #:  2 files

diff -r 37e213d586c9e89550f44941db8804504b757d72 -r 7245ec83f282b0d9be1a8aabe6abf17c92f0b546 yt/frontends/artio/tests/test_outputs.py
--- /dev/null
+++ b/yt/frontends/artio/tests/test_outputs.py
@@ -0,0 +1,51 @@
+"""
+ARTIO frontend tests 
+
+Author: Samuel Leitner <sam.leitner at gmail.com>
+Affiliation: University of Maryland College Park
+Homepage: http://yt-project.org/
+License:
+  Copyright (C) 2012 Matthew Turk.  All Rights Reserved.
+
+  This file is part of yt.
+
+  yt is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 3 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+"""
+
+from yt.testing import *
+from yt.utilities.answer_testing.framework import \
+    requires_pf, \
+    data_dir_load, \
+    PixelizedProjectionValuesTest, \
+    FieldValuesTest
+from yt.frontends.artio.api import ARTIOStaticOutput
+
+_fields = ("Temperature", "Density", "VelocityMagnitude") 
+
+aiso5 = "artio/aiso_a0.9005.art"
+ at requires_pf(aiso5)
+def test_aiso5():
+    pf = data_dir_load(aiso5)
+    yield assert_equal, str(pf), "aiso_a0.9005.art"
+    dso = [ None, ("sphere", ("max", (0.1, 'unitary')))]
+    for field in _fields:
+        for axis in [0, 1, 2]:
+            for ds in dso:
+                for weight_field in [None, "Density"]:
+                    yield PixelizedProjectionValuesTest(
+                        aiso5, axis, field, weight_field,
+                        ds)
+                yield FieldValuesTest(
+                        aiso5, field, ds)
+

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

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