From b26842a5722ef427196e987aba7638f093c30a53 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 1 May 2024 15:56:59 +0530 Subject: [PATCH] https version of videos, removed implementation note from docstring, tuple optional, uint8 constraint removal, note about 6 actors --- docs/examples/viz_play_cube.py | 12 ++++++------ fury/actor.py | 22 +++++++++------------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/docs/examples/viz_play_cube.py b/docs/examples/viz_play_cube.py index 0cd663c10..2d5ef6455 100644 --- a/docs/examples/viz_play_cube.py +++ b/docs/examples/viz_play_cube.py @@ -16,17 +16,17 @@ # There'll be a significant delay if your internet connectivity is poor, # use local directory paths for fast rendering. sources = [ - 'http://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'https://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'sample/BigBuckBunny.mp4', - 'http://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'https://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'sample/BigBuckBunny.mp4', - 'http://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'https://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'sample/BigBuckBunny.mp4', - 'http://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'https://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'sample/BigBuckBunny.mp4', - 'http://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'https://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'sample/BigBuckBunny.mp4', - 'http://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'https://commondatastorage.googleapis.com/gtv-videos-bucket/' + 'sample/BigBuckBunny.mp4' ] diff --git a/fury/actor.py b/fury/actor.py index 54eeced7d..ec2c70bb5 100644 --- a/fury/actor.py +++ b/fury/actor.py @@ -3964,19 +3964,19 @@ def texture_on_cube(negx, negy, negz, posx, posy, posz, centers=(0, 0, 0)): Parameters ---------- negx : ndarray - Input 2D RGB or RGBA array. Dtype should be uint8. + Input 2D RGB or RGBA array. negy : ndarray - Input 2D RGB or RGBA array. Dtype should be uint8. + Input 2D RGB or RGBA array. negz : ndarray - Input 2D RGB or RGBA array. Dtype should be uint8. + Input 2D RGB or RGBA array. posx : ndarray - Input 2D RGB or RGBA array. Dtype should be uint8. + Input 2D RGB or RGBA array. posy : ndarray - Input 2D RGB or RGBA array. Dtype should be uint8. + Input 2D RGB or RGBA array. posz : ndarray - Input 2D RGB or RGBA array. Dtype should be uint8. - centers : tuple (3,) - The X, Y and Z coordinate of the cube, optional. + Input 2D RGB or RGBA array. + centers : tuple (3,), optional + The X, Y and Z coordinate of the cube. |----| | +Y | @@ -3989,11 +3989,7 @@ def texture_on_cube(negx, negy, negz, posx, posy, posz, centers=(0, 0, 0)): Returns ------- actors : list[Actor] - A list of Actor objects, one for each face of the cube, in order. - - Implementation - -------------- - Check docs/examples/viz_play_cube.py + A list of 6 Actor objects, one for each face of the cube, in order. """ plane_objects = [PlaneSource() for _ in range(6)]