[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jan 29 06:32:20 PST 2014
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/1a664b9c0eac/
Changeset: 1a664b9c0eac
Branch: yt-3.0
User: ngoldbaum
Date: 2014-01-27 22:50:02
Summary: Adding image_utilities.c to hgignore.
Affected #: 1 file
diff -r ff7f35e02f27ad52f27a2fe0a9b912df9c4003d3 -r 1a664b9c0eacb523c4578ef3d0712c7196f07d21 .hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -30,6 +30,7 @@
yt/utilities/lib/fortran_reader.c
yt/utilities/lib/freetype_writer.c
yt/utilities/lib/geometry_utils.c
+yt/utilities/lib/image_utilities.c
yt/utilities/lib/Interpolators.c
yt/utilities/lib/kdtree.c
yt/utilities/lib/mesh_utilities.c
https://bitbucket.org/yt_analysis/yt/commits/c8cf35029ef1/
Changeset: c8cf35029ef1
Branch: yt-3.0
User: ngoldbaum
Date: 2014-01-27 22:56:10
Summary: Documenting result_basename.
Affected #: 1 file
diff -r 1a664b9c0eacb523c4578ef3d0712c7196f07d21 -r c8cf35029ef12d323a9bbffed5abe581efac8615 yt/testing.py
--- a/yt/testing.py
+++ b/yt/testing.py
@@ -534,6 +534,11 @@
disk. The filename will be func_results_ref_FUNCNAME.cpkl where FUNCNAME
is the name of the function being tested.
+ If you would like more control over the name of the pickle file the results
+ are stored in, you can pass the result_basename keyword argument to the
+ function you are testing. The check_results decorator will use the value
+ of the keyword to construct the filename of the results data file.
+
This will raise an exception if the results are not correct.
Examples
@@ -544,6 +549,13 @@
return pf.domain_width
my_func(pf)
+
+ @check_results
+ def field_checker(dd, field_name):
+ return dd[field_name]
+
+ field_cheker(pf.h.all_data(), 'density', result_basename='density')
+
"""
def compute_results(func):
def _func(*args, **kwargs):
https://bitbucket.org/yt_analysis/yt/commits/820c18731bd6/
Changeset: 820c18731bd6
Branch: yt-3.0
User: ngoldbaum
Date: 2014-01-27 22:58:22
Summary: Documenting the default behavior as well.
Affected #: 1 file
diff -r c8cf35029ef12d323a9bbffed5abe581efac8615 -r 820c18731bd631c346c80a9df3594331472bc976 yt/testing.py
--- a/yt/testing.py
+++ b/yt/testing.py
@@ -537,7 +537,8 @@
If you would like more control over the name of the pickle file the results
are stored in, you can pass the result_basename keyword argument to the
function you are testing. The check_results decorator will use the value
- of the keyword to construct the filename of the results data file.
+ of the keyword to construct the filename of the results data file. If
+ result_basename is not specified, the name of the testing function is used.
This will raise an exception if the results are not correct.
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