Skip to content

Commit

Permalink
made corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
tvcastillod committed Jul 8, 2023
1 parent bffb65d commit 0a49b68
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
8 changes: 4 additions & 4 deletions fury/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

import fury.primitive as fp
from fury import layout
from fury.actors.tensor import tensor_ellipsoid
from fury.actors.odf_slicer import OdfSlicerActor
from fury.actors.peak import PeakActor
from fury.actors.tensor import tensor_ellipsoid
from fury.colormap import colormap_lookup_table
from fury.deprecator import deprecate_with_version, deprecated_params
from fury.io import load_image
Expand Down Expand Up @@ -3818,11 +3818,11 @@ def ellipsoid(
lengths : ndarray (3, ) or (N, 3)
Axes lengths.
colors : ndarray (N,3) or tuple (3,), optional
Default red color. R, G and B should be at the range [0, 1]
Default red color. R, G and B should be in the range [0, 1].
scales : float or ndarray (N, ), optional
Ellipsoid size, default(1).
Ellipsoid size, default(1.0).
opacity : float, optional
Takes values from 0 (fully transparent) to 1 (opaque). Default is 1.
Takes values from 0 (fully transparent) to 1 (opaque), default(1.0).
Returns
-------
Expand Down
21 changes: 10 additions & 11 deletions fury/actors/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import numpy as np

from fury import actor
from fury.shaders import (attribute_to_actor, import_fury_shader,
shader_to_actor, compose_shader)

from fury.shaders import (attribute_to_actor, compose_shader,
import_fury_shader, shader_to_actor)

def tensor_ellipsoid(centers, axes, lengths, colors, scales, opacity):
"""
Expand All @@ -14,16 +13,16 @@ def tensor_ellipsoid(centers, axes, lengths, colors, scales, opacity):
Parameters
----------
centers : ndarray(N, 3)
Tensor ellipsoid positions
Tensor ellipsoid positions.
axes : ndarray (3, 3) or (N, 3, 3)
Axes of the tensor ellipsoid
Axes of the tensor ellipsoid.
lengths : ndarray (3, ) or (N, 3)
Axes lengths
colors : ndarray (N,3) or tuple (3,), optional
Default red color. R, G and B should be at the range [0, 1]
scales : float or ndarray (N, ), optional
Tensor ellipsoid size, default(1)
opacity : float, optional
Axes lengths.
colors : ndarray (N,3) or tuple (3,)
R, G and B should be in the range [0, 1].
scales : float or ndarray (N, )
Tensor ellipsoid size.
opacity : float
Takes values from 0 (fully transparent) to 1 (opaque).
Returns
Expand Down
4 changes: 2 additions & 2 deletions fury/tests/test_actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1761,9 +1761,9 @@ def test_ellipsoid_actor(interactive=False):
colors = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1],
[1, 1, 0], [1, 0, 1], [0, 1, 1]])

tensors = actor.ellipsoid(axes=axes, lengths=lengths, centers=centers,
ellipsoids = actor.ellipsoid(axes=axes, lengths=lengths, centers=centers,
scales=1.0, colors=colors)
scene.add(tensors)
scene.add(ellipsoids)

if interactive:
window.show(scene)
Expand Down

0 comments on commit 0a49b68

Please sign in to comment.