[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Apr 2 15:41:42 PDT 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/27e5098852ae/
Changeset: 27e5098852ae
Branch: yt
User: samskillman
Date: 2013-04-02 17:08:41
Summary: Swapping loop order in plotwindow tests. Speeds up nosetests for test_plotwindow
from 28 seconds to 12 seconds.
Affected #: 1 file
diff -r 4c9a9cd7eac8541bc10a747fb90ad2fdf200761a -r 27e5098852ae6bd3f6e4e4431a6e902ab7138b00 yt/visualization/tests/test_plotwindow.py
--- a/yt/visualization/tests/test_plotwindow.py
+++ b/yt/visualization/tests/test_plotwindow.py
@@ -116,18 +116,27 @@
test_pf = fake_random_pf(64)
test_flnms = [None, 'test.png', 'test.eps',
'test.ps', 'test.pdf']
- for fname in test_flnms:
- for dim in [0, 1, 2]:
- obj = SlicePlot(test_pf, dim, 'Density')
+
+ for dim in [0, 1, 2]:
+ obj = SlicePlot(test_pf, dim, 'Density')
+ obj.set_window_size(1)
+ for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
- obj = ProjectionPlot(test_pf, dim, 'Density')
+ for dim in [0, 1, 2]:
+ obj = ProjectionPlot(test_pf, dim, 'Density')
+ obj.set_window_size(1)
+ for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
- obj = OffAxisSlicePlot(test_pf, normal, 'Density')
+ obj = OffAxisSlicePlot(test_pf, normal, 'Density')
+ obj.set_window_size(1)
+ for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
- obj = OffAxisProjectionPlot(test_pf, normal, 'Density')
+ obj = OffAxisProjectionPlot(test_pf, normal, 'Density')
+ obj.set_window_size(1)
+ for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
os.chdir(curdir)
https://bitbucket.org/yt_analysis/yt/commits/85145a05a5be/
Changeset: 85145a05a5be
Branch: yt
User: samskillman
Date: 2013-04-02 21:00:16
Summary: Taking out the window size adjustments.
Affected #: 1 file
diff -r 27e5098852ae6bd3f6e4e4431a6e902ab7138b00 -r 85145a05a5bed50af23759d545e4f2aa46a69fdb yt/visualization/tests/test_plotwindow.py
--- a/yt/visualization/tests/test_plotwindow.py
+++ b/yt/visualization/tests/test_plotwindow.py
@@ -119,23 +119,19 @@
for dim in [0, 1, 2]:
obj = SlicePlot(test_pf, dim, 'Density')
- obj.set_window_size(1)
for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
for dim in [0, 1, 2]:
obj = ProjectionPlot(test_pf, dim, 'Density')
- obj.set_window_size(1)
for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
obj = OffAxisSlicePlot(test_pf, normal, 'Density')
- obj.set_window_size(1)
for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
obj = OffAxisProjectionPlot(test_pf, normal, 'Density')
- obj.set_window_size(1)
for fname in test_flnms:
yield assert_equal, assert_fname(obj.save(fname)[0]), True
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