-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix LISI warning error #302
Conversation
for i in enumerate(chunk_ids): | ||
for i, chunk_id in enumerate(chunk_ids): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed notation for better readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good idea!
print(i[1] + " has not enough neighbors.") | ||
simpson[i[0]] = 1 # np.nan #set nan for testing | ||
print(f'Chunk {chunk_id} does not have enough neighbors. Skipping...') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bugfix here. F-strings used to avoid type mismatch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, better style!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good to me. Is this tested?
for i in enumerate(chunk_ids): | ||
for i, chunk_id in enumerate(chunk_ids): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good idea!
print(i[1] + " has not enough neighbors.") | ||
simpson[i[0]] = 1 # np.nan #set nan for testing | ||
print(f'Chunk {chunk_id} does not have enough neighbors. Skipping...') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, better style!
Thanks for the quick review! |
The warning message if LISI encounters a case with too few neighbours throws an error.