<html><body>
<p>2 new commits in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/4de7f8ca5f2c/">https://bitbucket.org/yt_analysis/yt/commits/4de7f8ca5f2c/</a> Changeset:   4de7f8ca5f2c Branch:      yt User:        ngoldbaum Date:        2016-05-11 16:32:29+00:00 Summary:     Update sketchfab export docs. Closes #1038</p>
<p>This updated the recipe in the docs to use a public dataset and eliminates uses of the outdated ds[unit] unit conversion API. Affected #:  1 file</p>
<p>diff -r 7f7ccbc9329e14578e120835c0365f2e271e72cf -r 4de7f8ca5f2c23e72bf6a3a8f4d2abef7db79a70 doc/source/visualizing/sketchfab.rst --- a/doc/source/visualizing/sketchfab.rst +++ b/doc/source/visualizing/sketchfab.rst @@ -55,7 +55,7 @@</p>
<pre>.. code-block:: python

   import yt</pre>
<ul><li><p>ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")</p></li></ul>
<p>+   ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")</p>
<pre>   sphere = ds.sphere("max", (1.0, "Mpc"))
   surface = ds.surface(sphere, "density", 1e-27)
</pre>
<p>@@ -113,24 +113,23 @@</p>
<pre>.. code-block:: python
</pre>
<ul><li><p>import yt</p></li>
<li><p>ds = yt.load("redshift0058")</p></li>
<li><p>dd = ds.sphere("max", (200, "kpc"))</p></li>
<li><p>rho = 5e-27</p></li></ul>
<p>+    import yt +    from yt.units import kpc +    ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") +    dd = ds.sphere(ds.domain_center, (500, "kpc")) +    rho = 1e-28</p>
<ul><li><p>bounds = [(dd.center[i] – 100.0/ds['kpc'],</p></li>
<li><p>dd.center[i] + 100.0/ds['kpc']) for i in range(3)]</p></li></ul>
<p>+    bounds = [[dd.center[i] – 250*kpc, dd.center[i] + 250*kpc] for i in range(3)]</p>
<ul><li><p>surf = ds.surface(dd, “density”, rho)</p></li></ul>
<p>+    surf = ds.surface(dd, “density”, rho)</p>
<ul><li><p>upload_id = surf.export_sketchfab(</p></li>
<li><p>title = “RD0058 – 5e-27”,</p></li>
<li><p>description = "Extraction of Density (colored by Temperature) at 5e-27 " \</p></li>
<li><p>+ “g/cc from a galaxy formation simulation by Ryan Joung.”</p></li>
<li><p>color_field = “temperature”,</p></li>
<li><p>color_map = “hot”,</p></li>
<li><p>color_log = True,</p></li>
<li><p>bounds = bounds</p></li></ul>
<p>+    upload_id = surf.export_sketchfab( +        title="galaxy0030 – 1e-28", +        description="Extraction of Density (colored by temperature) at 1e-28 g/cc", +        color_field="temperature", +        color_map="hot", +        color_log=True, +        bounds=bounds</p>
<pre>   )

and yt will extract a surface, convert to a format that Sketchfab.com</pre>
<p>@@ -141,15 +140,13 @@</p>
<pre>.. raw:: html
</pre>
<ul><li><p><iframe frameborder="0" height="480" width="854" allowFullScreen</p></li>
<li><p>webkitallowfullscreen="true" mozallowfullscreen="true"</p></li>
<li><p>src="<a href="http://skfb.ly/l4jh2edcba?autostart=0&transparent=0&autospin=0&controls=1&watermark=1">http://skfb.ly/l4jh2edcba?autostart=0&transparent=0&autospin=0&controls=1&watermark=1</a>"></iframe></p></li></ul>
<p>+     <iframe width="640" height="480" src="<a href="https://sketchfab.com/models/ff59dacd55824110ad5bcc292371a514/embed">https://sketchfab.com/models/ff59dacd55824110ad5bcc292371a514/embed</a>" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe></p>
<pre>As a note, Sketchfab has a maximum model size of 50MB for the free account.</pre>
<p>-50MB is pretty hefty, though, so it shouldn't be a problem for most needs. -We're working on a way to optionally upload links to the Sketchfab models on -the `yt Hub <<a href="https://hub.yt-project.org/">https://hub.yt-project.org/</a>>`_, but for now, if you want to share -a cool model we'd love to see it! +50MB is pretty hefty, though, so it shouldn't be a problem for most +needs. Additionally, if you have an eligible e-mail address associated with a +school or university, you can request a free professional account, which allows +models up to 200MB. See <a href="https://sketchfab.com/education">https://sketchfab.com/education</a> for details.</p>
<pre>OBJ and MTL Files
-----------------</pre>
<p>@@ -167,7 +164,7 @@</p>
<pre>   import yt
</pre>
<ul><li><p>ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")</p></li></ul>
<p>+   ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")</p>
<pre>rho = [2e-27, 1e-27]
trans = [1.0, 0.5]
filename = './surfaces'</pre>
<p>@@ -239,7 +236,7 @@</p>
<pre>   import yt
</pre>
<ul><li><p>ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")</p></li></ul>
<p>+   ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")</p>
<pre>rho = [2e-27, 1e-27]
trans = [1.0, 0.5]
filename = './surfaces'</pre>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/db993aae1887/">https://bitbucket.org/yt_analysis/yt/commits/db993aae1887/</a> Changeset:   db993aae1887 Branch:      yt User:        xarthisius Date:        2016-05-11 18:24:16+00:00 Summary:     Merged in ngoldbaum/yt (pull request #2169)</p>
<p>Update sketchfab export docs. Closes #1038 Affected #:  1 file</p>
<p>diff -r f9d1b41b06bdb68e6642917795f68766c90a304e -r db993aae188791672893608249078d43a42b50cb doc/source/visualizing/sketchfab.rst --- a/doc/source/visualizing/sketchfab.rst +++ b/doc/source/visualizing/sketchfab.rst @@ -55,7 +55,7 @@</p>
<pre>.. code-block:: python

   import yt</pre>
<ul><li><p>ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")</p></li></ul>
<p>+   ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")</p>
<pre>   sphere = ds.sphere("max", (1.0, "Mpc"))
   surface = ds.surface(sphere, "density", 1e-27)
</pre>
<p>@@ -113,24 +113,23 @@</p>
<pre>.. code-block:: python
</pre>
<ul><li><p>import yt</p></li>
<li><p>ds = yt.load("redshift0058")</p></li>
<li><p>dd = ds.sphere("max", (200, "kpc"))</p></li>
<li><p>rho = 5e-27</p></li></ul>
<p>+    import yt +    from yt.units import kpc +    ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030") +    dd = ds.sphere(ds.domain_center, (500, "kpc")) +    rho = 1e-28</p>
<ul><li><p>bounds = [(dd.center[i] – 100.0/ds['kpc'],</p></li>
<li><p>dd.center[i] + 100.0/ds['kpc']) for i in range(3)]</p></li></ul>
<p>+    bounds = [[dd.center[i] – 250*kpc, dd.center[i] + 250*kpc] for i in range(3)]</p>
<ul><li><p>surf = ds.surface(dd, “density”, rho)</p></li></ul>
<p>+    surf = ds.surface(dd, “density”, rho)</p>
<ul><li><p>upload_id = surf.export_sketchfab(</p></li>
<li><p>title = “RD0058 – 5e-27”,</p></li>
<li><p>description = "Extraction of Density (colored by Temperature) at 5e-27 " \</p></li>
<li><p>+ “g/cc from a galaxy formation simulation by Ryan Joung.”</p></li>
<li><p>color_field = “temperature”,</p></li>
<li><p>color_map = “hot”,</p></li>
<li><p>color_log = True,</p></li>
<li><p>bounds = bounds</p></li></ul>
<p>+    upload_id = surf.export_sketchfab( +        title="galaxy0030 – 1e-28", +        description="Extraction of Density (colored by temperature) at 1e-28 g/cc", +        color_field="temperature", +        color_map="hot", +        color_log=True, +        bounds=bounds</p>
<pre>   )

and yt will extract a surface, convert to a format that Sketchfab.com</pre>
<p>@@ -141,15 +140,13 @@</p>
<pre>.. raw:: html
</pre>
<ul><li><p><iframe frameborder="0" height="480" width="854" allowFullScreen</p></li>
<li><p>webkitallowfullscreen="true" mozallowfullscreen="true"</p></li>
<li><p>src="<a href="http://skfb.ly/l4jh2edcba?autostart=0&transparent=0&autospin=0&controls=1&watermark=1">http://skfb.ly/l4jh2edcba?autostart=0&transparent=0&autospin=0&controls=1&watermark=1</a>"></iframe></p></li></ul>
<p>+     <iframe width="640" height="480" src="<a href="https://sketchfab.com/models/ff59dacd55824110ad5bcc292371a514/embed">https://sketchfab.com/models/ff59dacd55824110ad5bcc292371a514/embed</a>" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe></p>
<pre>As a note, Sketchfab has a maximum model size of 50MB for the free account.</pre>
<p>-50MB is pretty hefty, though, so it shouldn't be a problem for most needs. -We're working on a way to optionally upload links to the Sketchfab models on -the `yt Hub <<a href="https://hub.yt-project.org/">https://hub.yt-project.org/</a>>`_, but for now, if you want to share -a cool model we'd love to see it! +50MB is pretty hefty, though, so it shouldn't be a problem for most +needs. Additionally, if you have an eligible e-mail address associated with a +school or university, you can request a free professional account, which allows +models up to 200MB. See <a href="https://sketchfab.com/education">https://sketchfab.com/education</a> for details.</p>
<pre>OBJ and MTL Files
-----------------</pre>
<p>@@ -167,7 +164,7 @@</p>
<pre>   import yt
</pre>
<ul><li><p>ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")</p></li></ul>
<p>+   ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")</p>
<pre>rho = [2e-27, 1e-27]
trans = [1.0, 0.5]
filename = './surfaces'</pre>
<p>@@ -239,7 +236,7 @@</p>
<pre>   import yt
</pre>
<ul><li><p>ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")</p></li></ul>
<p>+   ds = yt.load("IsolatedGalaxy/galaxy0030/galaxy0030")</p>
<pre>rho = [2e-27, 1e-27]
trans = [1.0, 0.5]
filename = './surfaces'</pre>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27CHnU2cvAENstcFiHmH30SksquvB8PKyXSDjc-2BHt89D-2BbBNOjeAU4Sm9t1P50gW1kpLFHDpbl7ukqUJ0iYOi0gO0uuFjyVjbYvSIgHEpJjYZC6ZtTF-2Fy-2FvhTifojDMpDgnUvCuUWTuN-2F3STZjnbNZiXL-2BRkh-2Fj8FjYBsJZyoZVCaaUkTJI-2BAFlBgqRyUN1uznI-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>