[Amr] yt oblique slice.

Matthew Turk matthewturk at gmail.com
Thu Jun 30 14:32:57 EDT 2011


Hi Jorge,

Looks like a bug!  I have fixed it in 48b25ca8b7f2.

I also noted that the bounds for the OFRB run from -0.5 to 0.5.  An
updated script:

http://paste.enzotools.org/show/1728/

-Matt

On Thu, Jun 30, 2011 at 11:26 AM, Jorge Poco <jorge.poco at kitware.com> wrote:
> Hi Matt,
>
> I want to use the Oblique Slice. What is the correct way to create it? I'm
> using this script:
>
>
> from yt.mods import *
>
> pf = load("/home/jpocom/projects/yt/yt-source/tests/DD0010/moving7_0010")
> cut = pf.h.cutting([0, 0, 1], [0.5, 0.5], fields=['Density'])
> frb = ObliqueFixedResolutionBuffer(cut, (0.0, 1.0, 0.0, 1.0), (512, 512))
>
> but, it's giving me an error:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/jpocom/projects/yt/yt-source/yt/visualization/fixed_resolution.py",
> line 104, in __init__
>     xax = x_dict[axis]
> IndexError: list index out of range
>
> Regards,
> Att. Jorge Poco
>
>
>
>
>



More information about the Amr mailing list