[yt-svn] New issue 362 in yt: Can't do slice of Flash file

Bitbucket issues-reply at bitbucket.org
Wed Feb 15 16:43:00 PST 2012


--- you can reply above this line ---

New issue 362: Can't do slice of Flash file
https://bitbucket.org/yt_analysis/yt/issue/362/cant-do-slice-of-flash-file

Anonymous on Thu, 16 Feb 2012 01:43:00 +0100:

Description:
  Hi,
  I'm trying to do a .add_slice to a plot collection object and I get a traceback error.:

Code:

from yt.mods import * 

pf = load("data/GasSloshing/GasSloshing/sloshing_nomag2_hdf5_plt_cnt_0100")

domain_center = 0.5 * (pf.domain_left_edge + pf.domain_right_edge)

pc = PlotCollection(pf, center=domain_center)

p1 = pc.add_projection('Density', 0)

p2 = pc.add_slice('Density', 0)

pc.save(pf.basename) 

- - - - 

Error from p2 = pc.add_slice call:



Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/Users/mrichard/Work/Evan/yt/yt-i386/src/yt-hg/yt/visualization/plot_collection.py", line 409, in add_slice
    size=fig_size, periodic=periodic))

  File "/Users/mrichard/Work/Evan/yt/yt-i386/src/yt-hg/yt/visualization/plot_types.py", line 311, in __init__
    self.__init_temp_image(use_colorbar)

  File "/Users/mrichard/Work/Evan/yt/yt-i386/src/yt-hg/yt/visualization/plot_types.py", line 348, in __init_temp_image
    self.set_width(1,'unitary')

  File "/Users/mrichard/Work/Evan/yt/yt-i386/src/yt-hg/yt/visualization/plot_types.py", line 441, in set_width
    self._refresh_display_width()

  File "/Users/mrichard/Work/Evan/yt/yt-i386/src/yt-hg/yt/visualization/plot_types.py", line 459, in _refresh_display_width
    self._redraw_image()

  File "/Users/mrichard/Work/Evan/yt/yt-i386/src/yt-hg/yt/visualization/plot_types.py", line 381, in _redraw_image
    self[self.axis_names["Z"]].min(),

ValueError: zero-size array to minimum.reduce without identity

- - - - 

I've tried a yt update call and retried ... same error.

Thanks!
  -Mark


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the yt-svn mailing list