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

[Error] Update deprecation warning of the graph arguments #7965

Merged
merged 1 commit into from
May 10, 2023

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented May 9, 2023

Issue: #

Brief Summary

🤖 Generated by Copilot at 0419745

This pull request improves the deprecation warning messages for some arguments in the ti.graph module and updates the corresponding tests. The goal is to inform the users of the upcoming API changes and guide them to use the ti.graph module correctly.

Walkthrough

🤖 Generated by Copilot at 0419745

  • Update the deprecation warning messages for the element_shape, shape, channel_format, and num_channels arguments for scalar, ndarray, texture, and RWTexture to reflect the new version number and the removal policy (link, link, link, link)
  • Update the test cases for the deprecation warning messages in test_deprecation.py to match the new messages and verify the expected behavior (link, link, link, link, link, link)

@netlify
Copy link

netlify bot commented May 9, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 0419745
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/645a144e42f08c0008fe92dc
😎 Deploy Preview https://deploy-preview-7965--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@feisuzhu feisuzhu left a comment

Choose a reason for hiding this comment

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

LGTM!

@lin-hitonami lin-hitonami merged commit dd5762d into taichi-dev:master May 10, 2023
@lin-hitonami lin-hitonami deleted the deprecate-graph branch May 10, 2023 03:57
feisuzhu pushed a commit that referenced this pull request May 10, 2023
Issue: #

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 0419745</samp>

This pull request improves the deprecation warning messages for some
arguments in the `ti.graph` module and updates the corresponding tests.
The goal is to inform the users of the upcoming API changes and guide
them to use the `ti.graph` module correctly.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at 0419745</samp>

* Update the deprecation warning messages for the `element_shape`,
`shape`, `channel_format`, and `num_channels` arguments for scalar,
ndarray, texture, and RWTexture to reflect the new version number and
the removal policy
([link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL118-R119),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL134-R136),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL152-R155),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL167-R177))
* Update the test cases for the deprecation warning messages in
`test_deprecation.py` to match the new messages and verify the expected
behavior
([link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L15-R16),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L24-R26),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L33-R36),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L42-R46),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L57-R62),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L66-R72))
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…#7965)

Issue: #

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 0419745</samp>

This pull request improves the deprecation warning messages for some
arguments in the `ti.graph` module and updates the corresponding tests.
The goal is to inform the users of the upcoming API changes and guide
them to use the `ti.graph` module correctly.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at 0419745</samp>

* Update the deprecation warning messages for the `element_shape`,
`shape`, `channel_format`, and `num_channels` arguments for scalar,
ndarray, texture, and RWTexture to reflect the new version number and
the removal policy
([link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL118-R119),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL134-R136),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL152-R155),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL167-R177))
* Update the test cases for the deprecation warning messages in
`test_deprecation.py` to match the new messages and verify the expected
behavior
([link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L15-R16),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L24-R26),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L33-R36),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L42-R46),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L57-R62),
[link](https://github.com/taichi-dev/taichi/pull/7965/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L66-R72))
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