[yt-svn] commit/yt-doc: chummels: Adding in modification to make sure it grabs sample dataset from appropriate test dir, as per Kacper's suggestion.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Sep 6 15:03:21 PDT 2013
1 new commit in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/commits/d0ccdc8417b5/
Changeset: d0ccdc8417b5
User: chummels
Date: 2013-09-07 00:02:56
Summary: Adding in modification to make sure it grabs sample dataset from appropriate test dir, as per Kacper's suggestion.
Affected #: 1 file
diff -r 514e940dcf9136dcc84fa3206faf8b22889941cd -r d0ccdc8417b5b80ca2bcc8eaacd4ad9080749d22 source/visualizing/colormaps/cmap_images.py
--- a/source/visualizing/colormaps/cmap_images.py
+++ b/source/visualizing/colormaps/cmap_images.py
@@ -2,7 +2,7 @@
import matplotlib.cm as cm
# Load the dataset.
-pf = load("IsolatedGalaxy/galaxy0030/galaxy0030")
+pf = load(os.path.join(ytcfg.get("yt", "test_data_dir"), "IsolatedGalaxy/galaxy0030/galaxy0030"))
# Create projections using each colormap available.
p = ProjectionPlot(pf, "z", "Density", weight_field = "Density", width=0.4)
Repository URL: https://bitbucket.org/yt_analysis/yt-doc/
--
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