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

refactor region handling #127

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

jchiang87
Copy link
Collaborator

These changes will make it easier for third parties to implement their own object classes.

Copy link
Collaborator

@JoanneBogart JoanneBogart left a comment

Choose a reason for hiding this comment

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

Very nice. The old arrangement of some of this stuff was pretty unwieldy. Short docstrings for at least Region.compute_mask and Region.refcat_region would be helpful.
My only reservation is about the name refcat_region since the notion of a refcat is not really within the scope of shapes. I'd prefer something like sphgeom_region but can live with it as is.

@jchiang87
Copy link
Collaborator Author

Thanks! I'll add those docstrings and will rename the method to something more generic like sphgeom_region.

@jchiang87 jchiang87 merged commit 3824eeb into main Jan 15, 2025
3 checks passed
@jchiang87 jchiang87 deleted the u/jchiang/refactor_region_handling branch January 15, 2025 23:31
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