Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn/raise when passing incompatible objects to log (#3727)
### What - Resolves: #3710 Before: ``` transform3d_simple.py:11: RerunWarning: log: TypeError('TranslationAndMat3x3' object is not iterable) rr.log("base/translated", rr.TranslationAndMat3x3(translation=[1, 0, 0])) ``` After: ``` transform3d_simple.py:11: RerunWarning: log: TypeError(Expected an object implementing rerun.AsComponents or an iterable of rerun.ComponentBatchLike, but got <class 'rerun.datatypes.translation_and_mat3x3.TranslationAndMat3x3'> instead.) rr.log("base/translated", rr.TranslationAndMat3x3(translation=[1, 0, 0])) ``` ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3727) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3727) - [Docs preview](https://rerun.io/preview/379b347a96593ecf6a7efc5bf7b98d3e248e5489/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/379b347a96593ecf6a7efc5bf7b98d3e248e5489/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
- Loading branch information