[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jul 23 09:24:07 PDT 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/bba192a786fa/
Changeset: bba192a786fa
Branch: yt-3.0
User: pshriwise
Date: 2014-07-23 06:02:41
Summary: Added a section for loading PyNE meshes in the docs.
Affected #: 1 file
diff -r 195a97ccfda7bd7f4dfd6eb870927918fd9e1778 -r bba192a786fa04b6524c84903cbd78b2237f1dee doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -795,6 +795,47 @@
PyNE Data
---------
+`PyNE <http://pyne.io/>`_ meshes are supported by yt and cared for by Anthony Scopatz and Elliot Biondo.
+PyNE meshes are based on faceted geometried contained in hdf5 files (sufix ".h5m").
+
+To load a pyne mesh:
+
+.. code-block:: python
+
+ from pyne.mesh import Mesh
+ from pyne.dagmc import load, discretize_geom
+
+ from yt.config import ytcfg; ytcfg["yt","suppressStreamLogging"] = "True"
+ from yt.frontends.moab.api import PyneMoabHex8StaticOutput
+ from yt.visualization.plot_window import SlicePlot
+
+ load("faceted_file.h5m")
+
+Set up parameters for the mesh:
+
+.. code-block:: python
+
+ num_divisions = 50
+ coords0 = linspace(-6, 6, num_divisions)
+ coords1 = linspace(0, 7, num_divisions)
+ coords2 = linspace(-4, 4, num_divisions)
+
+Generate the mesh and convert to a yt object using PyneHex8StaticOutput:
+
+.. code-block:: python
+
+ m = Mesh(structured=True, structured_coords=[coords0, coords1, coords2], structured_ordering='zyx')
+ pf = PyneMoabHex8StaticOutput(m)
+
+The field (tag) data on the mesh can then be viewed just like any other yt dataset!
+
+.. code-block:: python
+
+ s = SlicePlot(pf, 'z', 'density')
+ s.display()
+
+
+
Generic Array Data
------------------
https://bitbucket.org/yt_analysis/yt/commits/b70f587ed650/
Changeset: b70f587ed650
Branch: yt-3.0
User: pshriwise
Date: 2014-07-23 16:34:02
Summary: Alterations to PyNE documentation for loading data.
Affected #: 1 file
diff -r bba192a786fa04b6524c84903cbd78b2237f1dee -r b70f587ed6507a571e1a580d86e3b848a4f40a22 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -795,15 +795,16 @@
PyNE Data
---------
-`PyNE <http://pyne.io/>`_ meshes are supported by yt and cared for by Anthony Scopatz and Elliot Biondo.
-PyNE meshes are based on faceted geometried contained in hdf5 files (sufix ".h5m").
+`PyNE <http://pyne.io/>`_ Hex8 meshes are supported by yt and cared for by the PyNE development team
+(`pyne-dev at googlegroups.com <pyne-dev%40googlegroups.com>`_).
+PyNE meshes are based on faceted geometries contained in hdf5 files (suffix ".h5m").
To load a pyne mesh:
.. code-block:: python
from pyne.mesh import Mesh
- from pyne.dagmc import load, discretize_geom
+ from pyne.dagmc import load
from yt.config import ytcfg; ytcfg["yt","suppressStreamLogging"] = "True"
from yt.frontends.moab.api import PyneMoabHex8StaticOutput
@@ -820,21 +821,20 @@
coords1 = linspace(0, 7, num_divisions)
coords2 = linspace(-4, 4, num_divisions)
-Generate the mesh and convert to a yt object using PyneHex8StaticOutput:
+Generate the Hex8 mesh and convert to a yt dataset using PyneHex8StaticOutput:
.. code-block:: python
m = Mesh(structured=True, structured_coords=[coords0, coords1, coords2], structured_ordering='zyx')
pf = PyneMoabHex8StaticOutput(m)
-The field (tag) data on the mesh can then be viewed just like any other yt dataset!
+Any field (tag) data on the mesh can then be viewed just like any other yt dataset!
.. code-block:: python
s = SlicePlot(pf, 'z', 'density')
s.display()
-
Generic Array Data
------------------
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