yt_analysis is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

yt_analysis / yt http://yt-project.org/

yt is a python package for analyzing and visualizing astrophysical simulation output from a couple simulation platforms. Check out the homepage (there's a link just above!) where we have documentation, a cookbook, and some user community information.

Clone this repository (size: 41.6 MB): HTTPS / SSH
hg clone https://bitbucket.org/yt_analysis/yt
hg clone ssh://hg@bitbucket.org/yt_analysis/yt

Issues

#352 Cannot create FixedResolutionBuffer with Cutting() object

Reported by Nathan Goldbaum

When I run the following script: http://paste.yt-project.org/show/1994/

using my FLASH2.5 datset, I get the following traceback: http://paste.yt-project.org/show/1995/

This has something to do with cutting planes not being periodic.

Status: resolved Responsible: Matthew Turk Type: bug Priority: blocker
Milestone: 2.3 Component: yt Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Matthew Turk

    written

    • Changed priority from minor to blocker.

    Hi Nathan. You can actually use the ObliqueFixedResolutionBuffer for cutting planes. The other 2D data objects have to_frb functions, but it looks like the cutting plane doesn't. I will add it before I close the bug. One important note is that CuttingPlanes run from -0.5 to 0.5, centered at hte center, as they are otherwise coordinate shifted.

  2. #2 Matthew Turk

    written

    (Reply via matt...@gmail.com):

    Hi Nathan. You can actually use the ObliqueFixedResolutionBuffer for cutting planes. The other 2D data objects have to_frb functions, but it looks like the cutting plane doesn't. I will add it before I close the bug. One important note is that CuttingPlanes run from -0.5 to 0.5, centered at hte center, as they are otherwise coordinate shifted.

  3. #3 Nathan Goldbaum

    written

    Hi Matt, thanks, I was not aware that ObliqueFixedResolutionBuffer existed. I'll look into it tomorrow.

  4. #4 Matthew Turk

    written

    • Changed responsible from nobody to MatthewTurk.

    I added a to_frb() function to the cutting plane object in the latest tip. It accepts a width and centers on the center of the cutting plane. Can you try that out?

  5. #5 Nathan Goldbaum

    written

    Seems to work with the following test script: http://paste.yt-project.org/show/1996/

  6. #6 Matthew Turk

    written

    • Changed status from new to resolved.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?