[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat Jul 29 14:30:40 PDT 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/47c837a30470/
Changeset: 47c837a30470
User: ngoldbaum
Date: 2017-07-27 21:43:50+00:00
Summary: remove unnecessary loop over 'xyz' in phase plot answer tests
Affected #: 1 file
diff -r 85cb5b40cd70e9772c4f581e8133692d5f73ed9e -r 47c837a30470b04d9ccb6cc80c8d8fe1d043abca yt/visualization/tests/test_profile_plots.py
--- a/yt/visualization/tests/test_profile_plots.py
+++ b/yt/visualization/tests/test_profile_plots.py
@@ -59,13 +59,12 @@
z_field = 'cell_mass'
decimals = 12
ds = data_dir_load(g30)
- for ax in 'xyz':
- for attr_name in ATTR_ARGS.keys():
- for args in ATTR_ARGS[attr_name]:
- test = PhasePlotAttributeTest(ds, x_field, y_field, z_field,
- attr_name, args, decimals)
- test_phase_plot_attributes.__name__ = test.description
- yield test
+ for attr_name in ATTR_ARGS.keys():
+ for args in ATTR_ARGS[attr_name]:
+ test = PhasePlotAttributeTest(ds, x_field, y_field, z_field,
+ attr_name, args, decimals)
+ test_phase_plot_attributes.__name__ = test.description
+ yield test
class TestProfilePlotSave(unittest.TestCase):
https://bitbucket.org/yt_analysis/yt/commits/c3c7f4a6713b/
Changeset: c3c7f4a6713b
User: jzuhone
Date: 2017-07-29 21:30:09+00:00
Summary: Merge pull request #1512 from ngoldbaum/xyz-loop-elide
remove unnecessary loop over 'xyz' in phase plot answer tests
Affected #: 1 file
diff -r 9b430b9b00cef6260a02c900e191743cb4eaa52e -r c3c7f4a6713b28483cfd74ec40e768a65adf9e4b yt/visualization/tests/test_profile_plots.py
--- a/yt/visualization/tests/test_profile_plots.py
+++ b/yt/visualization/tests/test_profile_plots.py
@@ -60,13 +60,12 @@
z_field = 'cell_mass'
decimals = 12
ds = data_dir_load(g30)
- for ax in 'xyz':
- for attr_name in ATTR_ARGS.keys():
- for args in ATTR_ARGS[attr_name]:
- test = PhasePlotAttributeTest(ds, x_field, y_field, z_field,
- attr_name, args, decimals)
- test_phase_plot_attributes.__name__ = test.description
- yield test
+ for attr_name in ATTR_ARGS.keys():
+ for args in ATTR_ARGS[attr_name]:
+ test = PhasePlotAttributeTest(ds, x_field, y_field, z_field,
+ attr_name, args, decimals)
+ test_phase_plot_attributes.__name__ = test.description
+ yield test
class TestProfilePlotSave(unittest.TestCase):
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