"""
"""
import numpy as np
from ..inertia_tensors import iterative_inertia_tensors_3D
from ..utils import sample_ellipsoidal_volume


__all__ = ('test_1',)


def test_2():
    """
    basic 3-d unit test
    """

    n1 = 10
    n2 = 100
    ndim = 3

    semi_axes = np.random.random((n1,ndim))
    coords = np.array([sample_ellipsoidal_volume(n2, semi_axes[i]) for i in range(0,n1)])

    Is = iterative_inertia_tensors_3D(coords)

    assert np.shape(Is)==(n1,ndim,ndim)

8141f30a1681dd13b935a80a925873d247420b93
<mask token>

<mask token>


def test_2():
    """
    basic 3-d unit test
    """
    n1 = 10
    n2 = 100
    ndim = 3
    semi_axes = np.random.random((n1, ndim))
    coords = np.array([sample_ellipsoidal_volume(n2, semi_axes[i]) for i in
        range(0, n1)])
    Is = iterative_inertia_tensors_3D(coords)
    assert np.shape(Is) == (n1, ndim, ndim)

<mask token>
__all__ = 'test_1',


def test_2():
    """
    basic 3-d unit test
    """
    n1 = 10
    n2 = 100
    ndim = 3
    semi_axes = np.random.random((n1, ndim))
    coords = np.array([sample_ellipsoidal_volume(n2, semi_axes[i]) for i in
        range(0, n1)])
    Is = iterative_inertia_tensors_3D(coords)
    assert np.shape(Is) == (n1, ndim, ndim)

<mask token>
import numpy as np
from ..inertia_tensors import iterative_inertia_tensors_3D
from ..utils import sample_ellipsoidal_volume
__all__ = 'test_1',


def test_2():
    """
    basic 3-d unit test
    """
    n1 = 10
    n2 = 100
    ndim = 3
    semi_axes = np.random.random((n1, ndim))
    coords = np.array([sample_ellipsoidal_volume(n2, semi_axes[i]) for i in
        range(0, n1)])
    Is = iterative_inertia_tensors_3D(coords)
    assert np.shape(Is) == (n1, ndim, ndim)

"""
"""
import numpy as np
from ..inertia_tensors import iterative_inertia_tensors_3D
from ..utils import sample_ellipsoidal_volume


__all__ = ('test_1',)


def test_2():
    """
    basic 3-d unit test
    """

    n1 = 10
    n2 = 100
    ndim = 3

    semi_axes = np.random.random((n1,ndim))
    coords = np.array([sample_ellipsoidal_volume(n2, semi_axes[i]) for i in range(0,n1)])

    Is = iterative_inertia_tensors_3D(coords)

    assert np.shape(Is)==(n1,ndim,ndim)
