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

[Lang] Remove deprecated graph arguments #8410

Merged
merged 6 commits into from
Nov 22, 2023
Merged

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Nov 17, 2023

Issue: #

Brief Summary

🤖[deprecated] Generated by Copilot at 85f2609

Remove and test deprecated arguments for graph nodes. The pull request removes the args and kwargs arguments from the Node class and its subclasses in _graph.py, and raises an error if they are used. It also updates the test_deprecation.py file to check for the error instead of a warning.

Walkthrough

🤖[deprecated] Generated by Copilot at 85f2609

  • Enforce the removal of deprecated arguments for graph nodes by raising TaichiRuntimeError instead of DeprecationWarning (link, link, link, link) in the _deprecate_arg_args function of python/taichi/graph/_graph.py
  • Update the test cases in tests/python/test_deprecation.py to expect TaichiRuntimeError instead of DeprecationWarning for scalar, ndarray, and texture arguments with deprecated arguments (link, link, link, link, link, link)

Copy link

netlify bot commented Nov 17, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit ad7341b
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/655d65a8ca55f600086b432a
😎 Deploy Preview https://deploy-preview-8410--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 configuration.

@lin-hitonami lin-hitonami marked this pull request as ready for review November 22, 2023 03:50
@jim19930609 jim19930609 merged commit bfa7d10 into master Nov 22, 2023
29 checks passed
@lin-hitonami lin-hitonami deleted the deprecate-graph branch November 22, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants