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

v0.2.2 : hotfix for createGiottoPolygon() #178

Merged
merged 13 commits into from
Mar 1, 2024
Merged

v0.2.2 : hotfix for createGiottoPolygon() #178

merged 13 commits into from
Mar 1, 2024

Conversation

jiajic
Copy link
Member

@jiajic jiajic commented Mar 1, 2024

  • added tests for creation from mask file
  • added runnable examples for data.frame-like, mask image, vector file
  • fix dispatch for character type inputs
  • add internal flip function for terra SpatVectors that has functional parity with the one GiottoClass defines for giottoPolygon
  • add new toy mask and vector files for testing & examples with createGiottoPolygon
  • fix poly_ID setting for mask inputs

## bug fixes
- fix `createGiottoPolygonsFromMask()` IDs being applied out of sync to mask values
- remove unused `fix_multipart` param in `createGiottoPolygonsFromMask()`

## enhancements
- `createGiottoPolygonsFromMask()` now has `ID_fmt` param for finer control of automatic poly_ID generation
terra has a flip function, but this internal adds the ability to flip over arbitrary x and y values in the same manner that has been implemented for `giottoPolygon` and `giottoPoints`
Also updates to documentation and examples
- also specifically show the needed columns for `data.frame-like` inputs
fix: `createGiottoPolygon()` further fixes and documentation
@jiajic jiajic merged commit 1812421 into main Mar 1, 2024
3 checks passed
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.

1 participant