Пример #1
0
def spin_z(compound, theta):
    """Rotate a compound in place around the z axis.

    Parameters
    ----------
    compound : mb.Compound
        The compound being rotated.
    theta : float
        The angle by which to rotate the compound.
    """
    raise RemovedFuncError("spin_z()", "Compound.spin_z()", "0.7.0", "0.11.0")
Пример #2
0
def translate_to(compound, pos):
    """Translate a compound to a coordinate.

    Parameters
    ----------
    compound : mb.Compound
        The compound being translated.
    pos : np.ndarray, shape=(3,), dtype=float
        The coordinate to translate the compound to.
    """
    raise RemovedFuncError("translate_to()", "Compound.translate_to()",
                           "0.7.0", "0.11.0")
Пример #3
0
def rotate_around_y(compound, theta):
    """Rotate a compound around the y axis.

    Parameters
    ----------
    compound : mb.Compound
        The compound being rotated.
    theta : float
        The angle by which to rotate the compound.
    """
    raise RemovedFuncError("rotate_around_y()", "Compound.rotate_around_y()",
                           "0.7.0", "0.11.0")
Пример #4
0
def translate(compound, pos):
    """Translate a compound by a vector.

    Parameters
    ----------
    compound : mb.Compound
        The compound being translated.
    pos : np.ndarray, shape=(3,), dtype=float
        The vector to translate the compound by.
    """
    raise RemovedFuncError("translate()", "Compound.translate()", "0.7.0",
                           "0.11.0")
Пример #5
0
def spin_y(compound, theta):
    """Rotate a compound in place around the y axis.

    Parameters
    ----------
    compound : mb.Compound
        The compound being rotated.
    theta : float
        The angle by which to rotate the compound.

    """
    raise RemovedFuncError('spin_y()', 'Compound.spin_y()', '0.7.0', '0.11.0')
Пример #6
0
def spin(compound, theta, around):
    """Rotate a compound in place around an arbitrary vector.

    Parameters
    ----------
    compound : mb.Compound
        The compound being rotated.
    theta : float
        The angle by which to rotate the compound, in radians.
    around : np.ndarray, shape=(3,), dtype=float
        The axis about which to spin the compound.
    """
    raise RemovedFuncError("spin()", "Compound.spin()", "0.7.0", "0.11.0")
Пример #7
0
def rotate_around_z(compound, theta):
    """Rotate a compound around the z axis.

    Parameters
    ----------
    compound : mb.Compound
        The compound being rotated.
    theta : float
        The angle by which to rotate the compound.

    """
    raise RemovedFuncError('rotate_around_z()', 'Compound.rotate_around_z()',
                           '0.7.0', '0.11.0')
Пример #8
0
def rotate(compound, theta, around):
    """Rotate a compound around an arbitrary vector.

    Parameters
    ----------
    compound : mb.Compound
        The compound being rotated.
    theta : float
        The angle by which to rotate the compound, in radians.
    around : np.ndarray, shape=(3,), dtype=float
        The vector about which to rotate the compound.

    """
    raise RemovedFuncError('rotate()', 'Compound.rotate()', '0.7.0', '0.11.0')
Пример #9
0
 def test_removed_func_error(self):
     RemovedFuncError("old_function", "new_function", "0.0.0", "0.1.0")
Пример #10
0
 def test_removed_func_error(self):
     RemovedFuncError('old_function', 'new_function', '0.0.0', '0.1.0')