[yt-svn] commit/yt: 5 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Jul 24 20:02:44 PDT 2014


5 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/d970134ebcdb/
Changeset:   d970134ebcdb
Branch:      yt-3.0
User:        pshriwise
Date:        2014-07-24 18:25:21
Summary:     Updates/corrections to Pyne frontend documentation.
Affected #:  1 file

diff -r 5a10dea0299bf9cf1587b4365fd8b73688636a8e -r d970134ebcdb84168fa72b78e33586b3e3dbf8b7 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -797,21 +797,18 @@
 
 `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
+  from pyne.mesh import Mesh, IMeshTag
 
   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
@@ -821,18 +818,20 @@
   coords1 = linspace(0, 7, num_divisions)
   coords2 = linspace(-4, 4, num_divisions)
 
-Generate the Hex8 mesh and convert to a yt dataset using PyneHex8StaticOutput:
+Generate the Hex8 mesh, add data, and convert to a yt dataset using PyneHex8StaticOutput:
 
 .. 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', 'density')
+  s = SlicePlot(pf, 'z', 'neutron_flux')
   s.display()
 
 


https://bitbucket.org/yt_analysis/yt/commits/18ddb673c169/
Changeset:   18ddb673c169
Branch:      yt-3.0
User:        pshriwise
Date:        2014-07-24 22:08:20
Summary:     Combined PyNE and MOAB sections for now.
Affected #:  1 file

diff -r d970134ebcdb84168fa72b78e33586b3e3dbf8b7 -r 18ddb673c169525fb9c2246e85f6c4d6e9802e40 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -785,14 +785,9 @@
 * :ref:`radio_cubes`
 * :ref:`xray_fits`
 
-.. _loading-moab-data:
+.. _loading-pyne/moab-data:
 
-MOAB Data
----------
-
-.. _loading-pyne-data:
-
-PyNE Data
+PyNE/MOAB Data
 ---------
 
 `PyNE <http://pyne.io/>`_ Hex8 meshes are supported by yt and cared for by the PyNE development team


https://bitbucket.org/yt_analysis/yt/commits/08dd7b49a47c/
Changeset:   08dd7b49a47c
Branch:      yt-3.0
User:        pshriwise
Date:        2014-07-24 22:23:40
Summary:     Correction to pyne/moab rest label.
Affected #:  1 file

diff -r 18ddb673c169525fb9c2246e85f6c4d6e9802e40 -r 08dd7b49a47cb7cdf01b08d59ec21db0fae11598 doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -785,7 +785,7 @@
 * :ref:`radio_cubes`
 * :ref:`xray_fits`
 
-.. _loading-pyne/moab-data:
+.. _loading-pyne-moab-data:
 
 PyNE/MOAB Data
 ---------


https://bitbucket.org/yt_analysis/yt/commits/032a832bd464/
Changeset:   032a832bd464
Branch:      yt-3.0
User:        pshriwise
Date:        2014-07-24 22:29:32
Summary:     Another small fix so section header matches the label
Affected #:  1 file

diff -r 08dd7b49a47cb7cdf01b08d59ec21db0fae11598 -r 032a832bd4642164fc02bb175aa2b93780d846af doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -787,7 +787,7 @@
 
 .. _loading-pyne-moab-data:
 
-PyNE/MOAB Data
+PyNE-MOAB Data
 ---------
 
 `PyNE <http://pyne.io/>`_ Hex8 meshes are supported by yt and cared for by the PyNE development team


https://bitbucket.org/yt_analysis/yt/commits/d4c7a0290fdf/
Changeset:   d4c7a0290fdf
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-07-25 05:02:36
Summary:     Merged in pshriwise/yt_main/yt-3.0 (pull request #1070)

Updates/corrections to Pyne & MOAB frontend documentation.
Affected #:  1 file

diff -r 6dfe7fd6f90947fe787e2fbfa572d75639370e45 -r d4c7a0290fdfdbe26de1ddf2d1d6e6b877dc4d7c doc/source/examining/loading_data.rst
--- a/doc/source/examining/loading_data.rst
+++ b/doc/source/examining/loading_data.rst
@@ -782,33 +782,25 @@
 * :ref:`radio_cubes`
 * :ref:`xray_fits`
 
-.. _loading-moab-data:
+.. _loading-pyne-moab-data:
 
-MOAB Data
----------
-
-.. _loading-pyne-data:
-
-PyNE Data
+PyNE-MOAB 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 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
+  from pyne.mesh import Mesh, IMeshTag
 
   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
@@ -818,18 +810,20 @@
   coords1 = linspace(0, 7, num_divisions)
   coords2 = linspace(-4, 4, num_divisions)
 
-Generate the Hex8 mesh and convert to a yt dataset using PyneHex8StaticOutput:
+Generate the Hex8 mesh, add data, and convert to a yt dataset using PyneHex8StaticOutput:
 
 .. 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', 'density')
+  s = SlicePlot(pf, 'z', 'neutron_flux')
   s.display()

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