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

fix: convert mesh tensor to nparray #404

Merged
merged 1 commit into from
Jun 20, 2022
Merged

fix: convert mesh tensor to nparray #404

merged 1 commit into from
Jun 20, 2022

Conversation

ZiniuYu
Copy link
Contributor

@ZiniuYu ZiniuYu commented Jun 17, 2022

Summary:

This PR convert mesh tensor get from load_uri_to_point_cloud_tensor to numpy array.

Description:

We use Trimesh APIs in this method and it returns a datatype of <class 'trimesh.caching.TrackedArray'> which is a subclass of numpy array (reference). This may cause some data type problems in downstream applications.

@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #404 (30e7129) into main (64f8ff5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #404   +/-   ##
=======================================
  Coverage   86.53%   86.53%           
=======================================
  Files         134      134           
  Lines        6388     6389    +1     
=======================================
+ Hits         5528     5529    +1     
  Misses        860      860           
Flag Coverage Δ
docarray 86.53% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/__init__.py 75.00% <100.00%> (ø)
docarray/document/mixins/mesh.py 94.44% <100.00%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7639918...30e7129. Read the comment docs.

Copy link
Contributor

@numb3r3 numb3r3 left a comment

Choose a reason for hiding this comment

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

LGTM

@hanxiao hanxiao merged commit b8feb53 into main Jun 20, 2022
@hanxiao hanxiao deleted the fix_mesh_type branch June 20, 2022 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants