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

Add count of neighboring cells #56

Draft
wants to merge 1 commit into
base: v2.0-dev
Choose a base branch
from

Conversation

jcssouza
Copy link

@jcssouza jcssouza commented Sep 8, 2021

This adds the number of neighboring objects to the the function check_isolation instead of just returning true or false for a cell. The addition of this metric in the final xrarray output was suggested by Jiaxi Hu and @deeplycloudy.

@w-k-jones w-k-jones changed the base branch from master to v2.0-dev January 20, 2022 08:13
@w-k-jones w-k-jones self-requested a review January 20, 2022 08:46
@w-k-jones
Copy link
Member

Just updated this to merging into v2.0-dev branch, which seems to have cleared up all the conflicts. I'll review and merge once I get the chance, but it all looks fine at first glance

@@ -31,17 +31,20 @@ def check_isolation(raw, filtered, grid_size, params):
params['ISO_THRESH'])
nobj_iso = np.max(iso_filtered)
iso = np.empty(nobj, dtype='bool')
neighbors = np.ones(nobj)*(-9999)
Copy link
Member

Choose a reason for hiding this comment

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

Why is this set to -9999? I'm not that familiar with the tint code yet, so if there's something obvious, let me know. Trying to figure out missing data vs. 0 neighbors; is this better as 0?

@w-k-jones w-k-jones added this to the Version 2.0 milestone Mar 4, 2022
@JuliaKukulies JuliaKukulies marked this pull request as draft September 29, 2023 22:23
@JuliaKukulies
Copy link
Member

Converted this to a draft, as this change is outdated with our current development

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.

4 participants