Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octree dataset don't support generating ghost zones #1051

Open
yt-fido opened this issue Jul 28, 2015 · 10 comments
Open

Octree dataset don't support generating ghost zones #1051

yt-fido opened this issue Jul 28, 2015 · 10 comments
Labels
enhancement Making something better help wanted Contributions from external projects' maintainers is particularly appreciated ! new contributor friendly Good for new contributors!

Comments

@yt-fido
Copy link
Collaborator

yt-fido commented Jul 28, 2015

Originally reported by: Kenza Arraki (Bitbucket: karraki, GitHub: karraki)


Accessing ('gas', 'density_gradient_x') for ART files fails with
AttributeError: 'ARTDomainSubset' object has no attribute 'retrieve_ghost_zones'

script: http://paste.yt-project.org/show/5748/
dataset: D9p_500 http://yt-project.org/data/
error: http://paste.yt-project.org/show/5749/

Version = 3.3-dev
Changeset = 60bd0bc6b0a9 (yt) tip


@yt-fido
Copy link
Collaborator Author

yt-fido commented Mar 24, 2016

Original comment by Nathan Goldbaum (Bitbucket: ngoldbaum, GitHub: ngoldbaum):


Punting to 3.4 since this will require a major new feature for NMSU ART.

@yt-fido yt-fido added this to the moderate milestone Apr 20, 2017
@ngoldbaum ngoldbaum removed the major label May 3, 2017
@ngoldbaum ngoldbaum removed this from the moderate milestone May 3, 2017
@ngoldbaum ngoldbaum added enhancement Making something better new feature Something fun and new! wishlist Things we'd like to do some day and removed yt bug labels May 3, 2017
@ngoldbaum ngoldbaum changed the title No attribute 'retrieve_ghost_zones' in ARTDomainSubset Octree dataset don't support generating ghost zones May 3, 2017
@ngoldbaum ngoldbaum modified the milestone: 3.4 May 4, 2017
@ngoldbaum ngoldbaum added help wanted Contributions from external projects' maintainers is particularly appreciated ! and removed 3.4 labels May 4, 2017
@ngoldbaum ngoldbaum modified the milestones: 3.4, 4.0 May 17, 2017
@cphyc
Copy link
Member

cphyc commented Sep 19, 2018

For the record, fixing this issue for oct-AMR datasets would make the following features (it would still require some extra work, but ghost zones is the hard part)

  • interactive visualisation
  • gradient computation

There is a first draft of that feature in https://github.com/cphyc/yt/tree/ghost_zones_WIP. Here's what needs to be done (this is one possible solution):

  1. Find the index of the neighbouring cells of an oct. This function should have a signature oct -> array[4, 4, 4] where the output is the index of the cells. The 2x2x2 at the center of the cube are the cells of the oct, the ones outside are the neighbouring cells.
  2. Read in the data for all the cells
  3. Return an object that would behave like a classic YTDataChunk but with a shape of noct, 4, 4, 4 instead of noct, 2, 2, 2.

Step 1 is almost done (it needs testing though), but I'm struggling with step 2. Some reasons are

  • it is hard to have access to cells that are in another domain
  • yt doesn't have a mechanism to access data based on the index (actually I don't understand how yt selects data from a given subset of cells...)

@cphyc cphyc added the yt-4.0 feature targeted for the yt-4.0 release label Jun 12, 2020
@cphyc
Copy link
Member

cphyc commented Jun 12, 2020

After #2425 is merged, this will be a low-hanging fruit as one will just have to implement the retrieve_ghost_zones function for the ARTDomainSubset class.

I changed the tags to reflect the fact it should be quite straightforward to do.

@cphyc cphyc added new contributor friendly Good for new contributors! and removed new feature Something fun and new! wishlist Things we'd like to do some day labels Jun 12, 2020
@munkm munkm mentioned this issue Mar 12, 2021
30 tasks
@matthewturk
Copy link
Member

@cphyc I think this is fixed now, right?

@cphyc
Copy link
Member

cphyc commented Mar 15, 2021

It is for RAMSES datasets, but some minor work would be required for ART datasets. I don't think I'll have time to do it anytime soon, but if a user requests it at some point it should be very straightforward.

@jzuhone
Copy link
Contributor

jzuhone commented Apr 22, 2021

@cphyc what would need to be done to fix this for ART datasets?

@cphyc
Copy link
Member

cphyc commented Apr 22, 2021

One would need to implement the equivalent methods to

def _fill_with_ghostzones(

and
def retrieve_ghost_zones(self, ngz, fields, smoothed=False):

as well as a mechanism to read data that don't live on leaf cells in ART. I'd be happy to chat more about it!

@jzuhone
Copy link
Contributor

jzuhone commented Apr 22, 2021

@cphyc ok, we probably should soon. Trying to get an all-hands-on-deck approach to resolving 4.0 issues.

@chummels chummels added the blocker Highest priority level label Apr 28, 2021
@neutrinoceros neutrinoceros modified the milestones: 4.0, 4.1 Apr 29, 2021
@neutrinoceros neutrinoceros removed the blocker Highest priority level label Apr 29, 2021
@neutrinoceros neutrinoceros removed the yt-4.0 feature targeted for the yt-4.0 release label May 6, 2021
@matthewturk
Copy link
Member

Untag from #3125?

@jzuhone
Copy link
Contributor

jzuhone commented Jun 18, 2021

Yes

@neutrinoceros neutrinoceros removed this from the 4.1.0 milestone Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making something better help wanted Contributions from external projects' maintainers is particularly appreciated ! new contributor friendly Good for new contributors!
Projects
None yet
Development

No branches or pull requests

7 participants