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

Add unit test for transform #10

Merged
merged 10 commits into from
Oct 25, 2019
Merged

Add unit test for transform #10

merged 10 commits into from
Oct 25, 2019

Conversation

CunliangGeng
Copy link
Member

No description provided.

Copy link
Member

@NicoRenaud NicoRenaud left a comment

Choose a reason for hiding this comment

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

Great job. Could you just change the name of rotation_matrix ?

xyz = rotation_matrix(xyz, mat)
_update(db, xyz, **kwargs)

def rotation_matrix(xyz, rot_mat, center=None):
Copy link
Member

Choose a reason for hiding this comment

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

that function name implies it returns the rotation matrix. I would change it to rotate or apply_rotation.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea! fixed.

@@ -0,0 +1,172 @@
import unittest
Copy link
Member

Choose a reason for hiding this comment

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

Great for the test ! That was definitely missing :)

@CunliangGeng CunliangGeng merged commit 2bebbfb into master Oct 25, 2019
@CunliangGeng CunliangGeng deleted the unit_test branch October 25, 2019 15:28
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