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

Wrap nested_dask reduce #414

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Wrap nested_dask reduce #414

wants to merge 5 commits into from

Conversation

smcguire-cmu
Copy link
Contributor

Adds the reduce function to the Catalog class, wrapping the reduce function in nd.NestedFrame

Copy link

@dougbrn dougbrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I have one question that I would not consider a blocker and more just curiosity.


"""
ndf = nd.NestedFrame.from_dask_dataframe(self._ddf.reduce(func, *args, meta=meta, **kwargs))
return self.__class__(ndf, self._ddf_pixel_map, self.hc_structure)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a silly question; do you want the result of this to be a healpix dataset object, rather than a nestedframe? The output of this can have a large range of potential outputs, and will often not have any spatial information.

I could see the arguments for it being a catalog being that it's still valid hipscat if you have the index, pixel map, and structure, and if that makes joining this back into another catalog then that sounds good. I guess I'm just curious if you thought about that here at all?

@dougbrn dougbrn mentioned this pull request Sep 23, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants