-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[misc] [refactor] 'ti.vec' and 'ti.veci' is deprecated, directly use a tuple in GUI system instead #1605
[misc] [refactor] 'ti.vec' and 'ti.veci' is deprecated, directly use a tuple in GUI system instead #1605
Conversation
…vec' and 'ti.core_veci' instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks. I'll update DiffTaichi later next week.
I agree core_vec
should be removed.
Co-authored-by: Yuanming Hu <yuanming-hu@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #1605 +/- ##
==========================================
+ Coverage 86.81% 86.87% +0.06%
==========================================
Files 19 19
Lines 3685 3689 +4
Branches 653 654 +1
==========================================
+ Hits 3199 3205 +6
+ Misses 353 350 -3
- Partials 133 134 +1
Continue to review full report at Codecov.
|
Co-authored-by: Yuanming Hu <yuanming-hu@users.noreply.github.com>
Related issue = #
[Click here for the format server]
Since some beginners may confuse
ti.vec
as an alias forti.Vector
... liketaichi_glsl.vec
does.Let's rename it to
core_vec
since it's a class exported fromlibtaichi_core.so
, any suggestion on the name?Let's remove it as soon as possible before v0.7.0, since our GUI system is already wrapped by Python and able to take tuple as input.
I used the
@deprecated
mark instead of fully deprecate it because, I see some DiffTaichi examples are still using them in GUI system. @yuanming-hu Could you upgrade DiffTaichi to new syntax (including this change and others)? I found most of them are not able to run now 😕OFT: doc
ti.rgb_to_hex
.