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

[misc] [refactor] 'ti.vec' and 'ti.veci' is deprecated, directly use a tuple in GUI system instead #1605

Conversation

archibate
Copy link
Collaborator

@archibate archibate commented Jul 28, 2020

Related issue = #

[Click here for the format server]


Since some beginners may confuse ti.vec as an alias for ti.Vector... like taichi_glsl.vec does.
Let's rename it to core_vec since it's a class exported from libtaichi_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.

@archibate archibate changed the title [misc] [refactor] 'ti.vec' and 'ti.veci' is deprecated, use 'ti.core_vec' and 'ti.core_veci' instead [misc] [refactor] 'ti.vec' and 'ti.veci' is deprecated, directly use a tuple in GUI system instead Jul 28, 2020
Copy link
Member

@yuanming-hu yuanming-hu left a 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.

docs/gui.rst Outdated Show resolved Hide resolved
docs/gui.rst Outdated Show resolved Hide resolved
docs/gui.rst Outdated Show resolved Hide resolved
docs/gui.rst Outdated Show resolved Hide resolved
Co-authored-by: Yuanming Hu <yuanming-hu@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jul 31, 2020

Codecov Report

Merging #1605 into master will increase coverage by 0.06%.
The diff coverage is 47.76%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
python/taichi/lang/ops.py 92.51% <33.33%> (-0.82%) ⬇️
python/taichi/lang/shell.py 51.38% <47.45%> (+12.67%) ⬆️
python/taichi/lang/__init__.py 80.20% <100.00%> (+<0.01%) ⬆️
python/taichi/lang/snode.py 93.69% <100.00%> (ø)

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 970c0f3...6acedee. Read the comment docs.

Co-authored-by: Yuanming Hu <yuanming-hu@users.noreply.github.com>
@archibate archibate added the LGTM label Jul 31, 2020
@archibate archibate merged commit 6e1191b into taichi-dev:master Jul 31, 2020
@FantasyVR FantasyVR mentioned this pull request Aug 1, 2020
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.

4 participants