[yt-users] volume rendering annotation error for a derived field

tazkera haque h.tazkera at gmail.com
Sat Aug 27 18:43:51 PDT 2016


Hi yt people,

I just updated to yt 3.3.1 to use all the new features of volume rendering.
I am trying to render ejected density which is a derived field and draw the
coordinate triads, domain boundary along with labels showing the log range
of ejected density. my code is attached. While my code worked fine with
default field 'density', the following figure was produced for 'density',
but I am getting error when the source field is set to 'ejected_density'.
Also the 'density' figure still does not show either the coordinate triads
or the domain boundary. I would appreciate your help to fix the error and
thanks in advance.

*Traceback (most recent call last):*
*  File "volume_render_test.py", line 117, in <module>*
*    text_annotate=[[(.1, 1.05), text_string]])*
*  File
"/work/03858/thaque56/sw/yt-new-3.3/yt-conda/lib/python2.7/site-packages/yt/visualization/volume_rendering/scene.py",
line 395, in save_annotated*
*    label = rs.data_source.ds._get_field_info(rs.field).get_label()*
*  File
"/work/03858/thaque56/sw/yt-new-3.3/yt-conda/lib/python2.7/site-packages/yt/fields/derived_field.py",
line 225, in get_label*
*    units = Unit(self.units, registry=self.ds.unit_registry)*
*AttributeError: 'NoneType' object has no attribute 'unit_registry'*


*Thanks*
*Tazkera*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160828/30e72c3d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotate_vol_render.py
Type: application/octet-stream
Size: 2342 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160828/30e72c3d/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vol_annotated (1).png
Type: image/png
Size: 356715 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160828/30e72c3d/attachment-0001.png>


More information about the yt-users mailing list