[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Apr 7 07:21:31 PDT 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/bfe3c5cf6d21/
Changeset: bfe3c5cf6d21
Branch: yt-3.0
User: BW Keller
Date: 2014-04-04 19:23:41
Summary: Documentation in the complex_plots cookbook was wrong, fixed some of this.
Fixed incorrect docstring in YTSliceBase
Affected #: 2 files
diff -r 3312a9b740bc6af61c388f5eabbdd09890475bfb -r bfe3c5cf6d21ac35be50e4d9467b5cd2f209493b doc/source/cookbook/multi_plot_slice_and_proj.py
--- a/doc/source/cookbook/multi_plot_slice_and_proj.py
+++ b/doc/source/cookbook/multi_plot_slice_and_proj.py
@@ -1,4 +1,5 @@
from yt.mods import * # set up our namespace
+from yt.visualization.base_plot_types import get_multi_plot
import matplotlib.colorbar as cb
from matplotlib.colors import LogNorm
@@ -18,7 +19,7 @@
slc = pf.slice(2, 0.0, fields=["density","temperature","velocity_magnitude"],
center=pf.domain_center)
-proj = pf.proj(2, "density", weight_field="density", center=pf.domain_center)
+proj = pf.proj("density", 2, weight_field="density", center=pf.domain_center)
slc_frb = slc.to_frb((1.0, "mpc"), 512)
proj_frb = proj.to_frb((1.0, "mpc"), 512)
diff -r 3312a9b740bc6af61c388f5eabbdd09890475bfb -r bfe3c5cf6d21ac35be50e4d9467b5cd2f209493b yt/data_objects/selection_data_containers.py
--- a/yt/data_objects/selection_data_containers.py
+++ b/yt/data_objects/selection_data_containers.py
@@ -160,15 +160,14 @@
coord : float
The coordinate along the axis at which to slice. This is in
"domain" coordinates.
- fields : list of strings, optional
- If you want the object to pre-retrieve a set of fields, supply them
- here. This is not necessary.
center : array_like, optional
The 'center' supplied to fields that use it. Note that this does
not have to have `coord` as one value. Strictly optional.
- node_name: string, optional
- The node in the .yt file to find or store this slice at. Should
- probably not be used.
+ pf: Dataset, optional
+ An optional dataset to use rather than self.pf
+ field_parameters : dictionary
+ A dictionary of field parameters than can be accessed by derived
+ fields.
kwargs : dict of items
Any additional values are passed as field parameters that can be
accessed by generated fields.
https://bitbucket.org/yt_analysis/yt/commits/f4838a2165c0/
Changeset: f4838a2165c0
Branch: yt-3.0
User: MatthewTurk
Date: 2014-04-07 16:21:19
Summary: Merged in bwkeller/yt/yt-3.0 (pull request #797)
Documentation in the complex_plots cookbook was wrong, fixed some of this.
Affected #: 2 files
diff -r 3f811aec00e95273ad30a5df7f8e2c7b3744e27a -r f4838a2165c038735b8f638a869a967e30348b99 doc/source/cookbook/multi_plot_slice_and_proj.py
--- a/doc/source/cookbook/multi_plot_slice_and_proj.py
+++ b/doc/source/cookbook/multi_plot_slice_and_proj.py
@@ -1,4 +1,5 @@
from yt.mods import * # set up our namespace
+from yt.visualization.base_plot_types import get_multi_plot
import matplotlib.colorbar as cb
from matplotlib.colors import LogNorm
@@ -18,7 +19,7 @@
slc = pf.slice(2, 0.0, fields=["density","temperature","velocity_magnitude"],
center=pf.domain_center)
-proj = pf.proj(2, "density", weight_field="density", center=pf.domain_center)
+proj = pf.proj("density", 2, weight_field="density", center=pf.domain_center)
slc_frb = slc.to_frb((1.0, "mpc"), 512)
proj_frb = proj.to_frb((1.0, "mpc"), 512)
diff -r 3f811aec00e95273ad30a5df7f8e2c7b3744e27a -r f4838a2165c038735b8f638a869a967e30348b99 yt/data_objects/selection_data_containers.py
--- a/yt/data_objects/selection_data_containers.py
+++ b/yt/data_objects/selection_data_containers.py
@@ -160,15 +160,14 @@
coord : float
The coordinate along the axis at which to slice. This is in
"domain" coordinates.
- fields : list of strings, optional
- If you want the object to pre-retrieve a set of fields, supply them
- here. This is not necessary.
center : array_like, optional
The 'center' supplied to fields that use it. Note that this does
not have to have `coord` as one value. Strictly optional.
- node_name: string, optional
- The node in the .yt file to find or store this slice at. Should
- probably not be used.
+ pf: Dataset, optional
+ An optional dataset to use rather than self.pf
+ field_parameters : dictionary
+ A dictionary of field parameters than can be accessed by derived
+ fields.
kwargs : dict of items
Any additional values are passed as field parameters that can be
accessed by generated fields.
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