<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello fellow yt users!<div><br></div><div>I'm new at yt and have been working through the cookbook for a few days now. So far I've got 2 issues that I cannot resolve. I'm trying to make Phase diagrams (using time_series_phase.py form the cookbook), and I'm getting the following error on the SDSC cluster Triton (who's environment & installations were set up by Matt Turk):</div><div><br></div><div><div style="font-size: 10px; ">[hipacc-16@login-4-0 unigrid]$ python time_series_phase.py</div><div style="font-size: 10px; ">/projects/lca-group/local-dev/lib/python2.6/site-packages/pytz/__init__.py:29: UserWarning: Module readline was already imported from /projects/lca-group/local-dev/lib/python2.6/lib-dynload/readline.so, but /projects/lca-group/local-dev/lib/python2.6/site-packages is being added to sys.path</div><div style="font-size: 10px; "> from pkg_resources import resource_stream</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,368 Created plot collection with default plot-center = [0.5, 0.5, 0.5]</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,380 Getting the binary hierarchy</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,383 Finished with binary hierarchy reading</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,487 Getting field Density from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,536 Getting field Temperature from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,743 Getting field CellMassMsun from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,743 Getting field CellVolume from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,743 Getting field dx from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,774 Getting field dy from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:57,806 Getting field dz from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:59,331 Saved DD0000_Profile2D_0_Density_Temperature_CellMassMsun.png</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:59,338 Created plot collection with default plot-center = [0.5, 0.5, 0.5]</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:59,343 Getting the binary hierarchy</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:59,346 Finished with binary hierarchy reading</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:59,448 Getting field Density from 8</div><div style="font-size: 10px; ">yt INFO 2010-07-30 16:56:59,494 Getting field Temperature from 8</div><div style="font-size: 10px; ">Traceback (most recent call last):</div><div style="font-size: 10px; "> File "time_series_phase.py", line 23, in <module></div><div style="font-size: 10px; "> y_bins=128, y_bounds = (1e2, 1e7))</div><div style="font-size: 10px; "> File "/projects/lca-group/local-dev/lib/python2.6/site-packages/yt-2.0dev-py2.6-linux-x86_64.egg/yt/raven/plot_collection.py", line 1130, in add_phase_sphere</div><div style="font-size: 10px; "> lazy_reader, id, axes, figure, fractional)</div><div style="font-size: 10px; "> File "/projects/lca-group/local-dev/lib/python2.6/site-packages/yt-2.0dev-py2.6-linux-x86_64.egg/yt/raven/plot_collection.py", line 1015, in add_phase_object</div><div style="font-size: 10px; "> lazy_reader)</div><div style="font-size: 10px; "> File "/projects/lca-group/local-dev/lib/python2.6/site-packages/yt-2.0dev-py2.6-linux-x86_64.egg/yt/lagos/Profiles.py", line 402, in __init__</div><div style="font-size: 10px; "> self._args = self._get_bins(data_source)</div><div style="font-size: 10px; "> File "/projects/lca-group/local-dev/lib/python2.6/site-packages/yt-2.0dev-py2.6-linux-x86_64.egg/yt/lagos/Profiles.py", line 47, in save_state</div><div style="font-size: 10px; "> tr = func(*args, **kwargs)</div><div style="font-size: 10px; "> File "/projects/lca-group/local-dev/lib/python2.6/site-packages/yt-2.0dev-py2.6-linux-x86_64.egg/yt/lagos/Profiles.py", line 453, in _get_bins</div><div style="font-size: 10px; "> raise EmptyProfileData()</div><div style="font-size: 10px; ">yt.lagos.Profiles.EmptyProfileData</div><div style="font-size: 10px; ">[hipacc-16@login-4-0 unigrid]$ </div></div><div><br></div><div>After all this is spit out there is a single PNG in the directory, when there should be ~27. I tried it with both lazy_reading on and off, both yield the same result.</div><div><br></div><div>My second issue is that I'm not getting color bars when making multiplots through the use of multi_plot.py. Here is the script (slightly altered from the cookbook) I am using:</div><div><br></div><div><div style="font-size: 11px; ">from yt.mods import * # set up our namespace </div><div style="font-size: 11px; ">orient = 'horozontal'</div><div style="font-size: 11px; ">for i in range(0,27):</div><div style="font-size: 11px; "> fn = "RD%04i/RedshiftOutput%04i" % (i,i) # parameter file to load </div><div style="font-size: 11px; "> pf = load(fn) # load data </div><div style="font-size: 11px; "> fig, axes, colorbars = raven.get_multi_plot(3, 1, colorbar=orient, bw=4)</div><div style="font-size: 11px; "> pc = PlotCollection(pf, center=[0.5,0.5,0.5])</div><div style="font-size: 11px; "> p = pc.add_projection("Density", 0, figure=fig, axes = axes[0][0], use_colorbar\</div><div style="font-size: 11px; ">=False)</div><div style="font-size: 11px; "> pc.set_cmap("bds_highcontrast")</div><div style="font-size: 11px; "> p = pc.add_projection("Temperature", 0, figure=fig, axes=axes[0][1], use_colorb\</div><div style="font-size: 11px; ">ar=False)</div><div style="font-size: 11px; "> p = pc.add_projection("particle_density_pyx", 0, figure=fig, axes=axes[0][2], u\</div><div style="font-size: 11px; ">se_colorbar=False)</div><div style="font-size: 11px; "> for p, cax in zip(pc.plots, colorbars):</div><div style="font-size: 11px; "> cbar = cb.Colorbar(cax, p.image, orientation=orient)</div><div style="font-size: 11px; "> p.colorbar = cbar</div><div style="font-size: 11px; "> p._autoset_label()</div><div style="font-size: 11px; "> fig.savefig("%s_projection" % pf)</div></div><div><br></div><div>And it produces images like this: <a href="http://img.photobucket.com/albums/v321/mons00n/RedshiftOutput0009_projection.png">http://img.photobucket.com/albums/v321/mons00n/RedshiftOutput0009_projection.png</a></div><div><br></div><div>I'm quite happy to be getting results, but no idea on how to fix the missing color bar problem. Thanks for your time!</div><div><br></div><div>-Robert Thompson</div></body></html>