[yt-users] Camera/Off axis Options

Sushilkumar sushil.sush19us at gmail.com
Tue Apr 26 06:32:54 PDT 2016


Dear Suoqing Ji:

I was able to implement the off axis in my script (drive link below, file
is yt_magnetic_fields.py). But there seems to be a problem. For any off
axis value like (1,1,0) I get an error which is given below.

I am trying to get a z-x plane and view it at an angle of 15,45,60 degrees
respectively. It works for along the axis normal vector like (1,0,0) and so
on but for off axis value it gives me the error.

Could you let me know if there is any error in the script or ways to
overcome it?

Thanks in advance


https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc



Error:

Traceback (most recent call last):
  File "yt_magnetic_fields.py", line 39, in <module>
    slc.save()
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_container.py",
line 77, in newfunc
    args[0]._setup_plots()
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_window.py",
line 980, in _setup_plots
    self.run_callbacks()
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_window.py",
line 1033, in run_callbacks
    sys.exc_info()[2])
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_window.py",
line 1029, in run_callbacks
    callback(cbw)
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_modifications.py",
line 316, in __call__
    return qcb(plot)
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/visualization/plot_modifications.py",
line 837, in __call__
    plot.data[self.field_x],
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/data_objects/data_containers.py",
line 246, in __getitem__
    f = self._determine_fields([key])[0]
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/data_objects/data_containers.py",
line 518, in _determine_fields
    finfo = self.ds._get_field_info("unknown", fname)
  File
"/state/partition1/anaconda/lib/python2.7/site-packages/yt/data_objects/static_output.py",
line 543, in _get_field_info
    raise YTFieldNotFound((ftype, fname), self)
yt.utilities.exceptions.YTPlotCallbackError: annotate_magnetic_field
callback failed with the following error: Could not find field '('all',
'cutting_plane_bx')' in UniformGridData


-- 
*SK2*

*"**Claiming that something can move faster than light is a good
conversation-stopper in physics. People edge away from you in cocktail
parties; friends never return phone calls. You just don’t mess with Albert
Einstein.**"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160426/cf1d4d1c/attachment.htm>


More information about the yt-users mailing list