[yt-svn] commit/yt: 4 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jul 25 10:16:38 PDT 2014
4 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/8a3119f65a36/
Changeset: 8a3119f65a36
Branch: yt-3.0
User: elliottbiondo
Date: 2014-07-25 02:23:13
Summary: Cleanup of PyNE mesh documentation.
Affected #: 1 file
diff -r d13ab03ca0f7ba973ee867b0cacfc434360d61ba -r 8a3119f65a368e3696db1d3ec65fc427ec9ca4f1 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -781,48 +781,42 @@
* :ref:`radio_cubes`
* :ref:`xray_fits`
-.. _loading-pyne-moab-data:
+.. _loading-pyne-data:
-PyNE-MOAB Data
---------------
+PyNE Data
+---------
-`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 <http://pyne.io/>`_ is an open source nuclear engineering toolkit maintained by the
+PyNE developement team (`pyne-dev at googlegroups.com <pyne-dev%40googlegroups.com>`_). PyNE
+meshes utilize the Mesh-Oriented datABase `(MOAB) <http://trac.mcs.anl.gov/projects/ITAPS/wiki/MOAB/>`_
+and can be Cartesian or tetrahedral. In addition to field data, pyne meshes store pyne Material objects
+which provide a rich set of capabilities for nuclear engineering tasks. PyNE Cartesian
+(Hex8) meshes are supported by yt.
-
-To load a pyne mesh:
+To create a pyne mesh:
.. code-block:: python
- from pyne.mesh import Mesh, IMeshTag
+ from pyne.mesh import Mesh
+ num_divisions = 50
+ coords = linspace(-1, 1, num_divisions)
+ m = Mesh(structured=True, structured_coords=[coords, coords, coords])
- from yt.config import ytcfg; ytcfg["yt","suppressStreamLogging"] = "True"
- from yt.frontends.moab.api import PyneMoabHex8StaticOutput
- from yt.visualization.plot_window import SlicePlot
-
-Set up parameters for the mesh:
+Field data can then be added:
.. code-block:: python
- num_divisions = 50
- coords0 = linspace(-6, 6, num_divisions)
- coords1 = linspace(0, 7, num_divisions)
- coords2 = linspace(-4, 4, num_divisions)
+ from pyne.mesh import iMeshTag
+ m.neutron_flux = IMeshTag()
+ m.neutron_flux[:] = neutron_flux_data # list or numpy array of size num_divisions^3
-Generate the Hex8 mesh, add data, and convert to a yt dataset using PyneHex8StaticOutput:
+Any field data or material data on the mesh can then be viewed just like any other yt dataset!
-.. code-block:: python
+.. code-block:: python
- m = Mesh(structured=True, structured_coords=[coords0, coords1, coords2], structured_ordering='zyx')
- m.neutron_flux = IMeshTag() # iMesh tags are equivalent to yt fields
- m.neutron_flux[:] = neutron_flux_data # list or numpy array of size num_divisions^3
- pf = PyneMoabHex8StaticOutput(m)
-
-Any field (tag) data on the mesh can then be viewed just like any other yt dataset!
-
-.. code-block:: python
-
- s = SlicePlot(pf, 'z', 'neutron_flux')
+ import yt
+ pf = yt.frontends.moab.api.PyneMoabHex8StaticOutput(m)
+ s = yt.visualization.plot_window.SlicePlot(pf, 'z', 'neutron_flux')
s.display()
https://bitbucket.org/yt_analysis/yt/commits/a41b8e688c40/
Changeset: a41b8e688c40
Branch: yt-3.0
User: elliottbiondo
Date: 2014-07-25 06:55:56
Summary: Fixed SlicePlot
Affected #: 1 file
diff -r 8a3119f65a368e3696db1d3ec65fc427ec9ca4f1 -r a41b8e688c4021b1d5dfbcdc3f3133b5411d8fe7 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -816,7 +816,7 @@
import yt
pf = yt.frontends.moab.api.PyneMoabHex8StaticOutput(m)
- s = yt.visualization.plot_window.SlicePlot(pf, 'z', 'neutron_flux')
+ s = yt.SlicePlot(pf, 'z', 'neutron_flux')
s.display()
https://bitbucket.org/yt_analysis/yt/commits/a38268aec1a6/
Changeset: a38268aec1a6
Branch: yt-3.0
User: elliottbiondo
Date: 2014-07-25 07:00:46
Summary: Another API change.
Affected #: 1 file
diff -r a41b8e688c4021b1d5dfbcdc3f3133b5411d8fe7 -r a38268aec1a6bf26e190175f7d5aecbb4def4952 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -815,7 +815,7 @@
.. code-block:: python
import yt
- pf = yt.frontends.moab.api.PyneMoabHex8StaticOutput(m)
+ pf = yt.frontends.moab.data_structures.PyneMoabHex8Dataset(m)
s = yt.SlicePlot(pf, 'z', 'neutron_flux')
s.display()
https://bitbucket.org/yt_analysis/yt/commits/32002f89fa54/
Changeset: 32002f89fa54
Branch: yt-3.0
User: ngoldbaum
Date: 2014-07-25 19:16:06
Summary: Minor style cleanup of PyNE docs.
Affected #: 1 file
diff -r a38268aec1a6bf26e190175f7d5aecbb4def4952 -r 32002f89fa54ab07665d516508ed7edcf260aaa5 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -786,12 +786,13 @@
PyNE Data
---------
-`PyNE <http://pyne.io/>`_ is an open source nuclear engineering toolkit maintained by the
-PyNE developement team (`pyne-dev at googlegroups.com <pyne-dev%40googlegroups.com>`_). PyNE
-meshes utilize the Mesh-Oriented datABase `(MOAB) <http://trac.mcs.anl.gov/projects/ITAPS/wiki/MOAB/>`_
-and can be Cartesian or tetrahedral. In addition to field data, pyne meshes store pyne Material objects
-which provide a rich set of capabilities for nuclear engineering tasks. PyNE Cartesian
-(Hex8) meshes are supported by yt.
+`PyNE <http://pyne.io/>`_ is an open source nuclear engineering toolkit
+maintained by the PyNE developement team (`pyne-dev at googlegroups.com
+<pyne-dev%40googlegroups.com>`_). PyNE meshes utilize the Mesh-Oriented datABase
+`(MOAB) <http://trac.mcs.anl.gov/projects/ITAPS/wiki/MOAB/>`_ and can be
+Cartesian or tetrahedral. In addition to field data, pyne meshes store pyne
+Material objects which provide a rich set of capabilities for nuclear
+engineering tasks. PyNE Cartesian (Hex8) meshes are supported by yt.
To create a pyne mesh:
@@ -808,7 +809,8 @@
from pyne.mesh import iMeshTag
m.neutron_flux = IMeshTag()
- m.neutron_flux[:] = neutron_flux_data # list or numpy array of size num_divisions^3
+ # neutron_flux_data is a list or numpy array of size num_divisions^3
+ m.neutron_flux[:] = neutron_flux_data
Any field data or material data on the mesh can then be viewed just like any other yt dataset!
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