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

Update fof.py #611

Merged
merged 3 commits into from Feb 26, 2020
Merged

Update fof.py #611

merged 3 commits into from Feb 26, 2020

Conversation

eelregit
Copy link
Member

@eelregit eelregit commented Feb 6, 2020

Some source like the Gadget1Catalog does not have an Nmesh attribute

Some source like the `Gadget1Catalog` does not have an Nmesh attribute
@eelregit
Copy link
Member Author

eelregit commented Feb 9, 2020

Why not including ndim in the attributes of catalog and mesh sources?

@rainwoodman
Copy link
Member

I think it is because if the catalog doesn't define a Position, then ndim is not defined.

How did you test this?

@eelregit
Copy link
Member Author

eelregit commented Feb 9, 2020

Is there any example of catalog without 'Position'?

And should we move these ndim inference lines to the source class?

@rainwoodman
Copy link
Member

Without 'Position': Galaxy catalog with RA and DEC.

We probably shouldn't move the ndim inference lines to the source class: one-liner functions that are sometimes defined sometimes not defined is likely not worthy of the complexity.

I think we may already have a few of these, and they are awkward.

@rainwoodman
Copy link
Member

Merging. Thanks!

@rainwoodman rainwoodman merged commit 0420aef into master Feb 26, 2020
@rainwoodman rainwoodman deleted the FOF-infer-meansep branch February 26, 2020 16:00
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.

None yet

2 participants