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

Enhancement: Rasterization of Geometries & Geometry Module Improvements #9

Merged
merged 3 commits into from
May 14, 2024

Conversation

mbsantiago
Copy link
Owner

This pull request introduces rasterization capabilities for geometries, along with enhancements to the geometry module.

Key Changes:

  • Geometry Rasterization:
    • A new rasterize function has been added to soundevent.geometry.operations. This function allows you to convert any soundevent.Geometry object into a DataArray raster format.
    • This is particularly useful in machine learning scenarios, where rasterized geometries can serve as tensor targets for model training.
  • Geometry Point Extraction:
    • The get_geometry_point function in soundevent.geometry.operations enables you to extract specific points (e.g., "bottom-left", "centroid") from a geometry.
  • Comprehensive Unit Tests:
    • Unit tests have been added to cover all functionalities within the geometry module, ensuring code reliability and robustness.

Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 95.91837% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 89.06%. Comparing base (c8fa490) to head (11d1fcd).

Files Patch % Lines
src/soundevent/arrays/dimensions.py 80.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   88.21%   89.06%   +0.85%     
==========================================
  Files         102      101       -1     
  Lines        2995     3009      +14     
  Branches      470      475       +5     
==========================================
+ Hits         2642     2680      +38     
+ Misses        283      259      -24     
  Partials       70       70              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mbsantiago mbsantiago merged commit ae3e608 into main May 14, 2024
7 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.

None yet

1 participant