New issue 650: load helper should fallback to test_data_dir https://bitbucket.org/yt_analysis/yt/issue/650/load-helper-should-fallback-t... Kacper Kowalik: This is related to [PR99](https://bitbucket.org/yt_analysis/yt-doc/pull-request/99/adding-colormaps-pa...). I've initially wanted to as @chummels to modify his `cmap_images.py` script as follows: ``` #!diff --- a/cmap_images.py +++ b/cmap_images.py @@ -1,8 +1,9 @@ from yt.mods import * import matplotlib.cm as cm - +import os # 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. ``` Then I thought that if we could make `load` fallback to that path if `args` doesn't exists, that would come handy for docstrings tests. Responsible: xarthisius