src/bvhtoolbox/convert/csv2bvh.py
def _get_motion_string(n_frames, frame_time, frames):
    """ Compose the motion part of a bvh file.
    
    :param n_frames: Number of frames.
    :type n_frames: int
    :param frame_time: Time in seconds it takes to advance 1 frame.
    :type frame_time: float
    :param frames: The motion data for channels of all joints.
    :type frames: numpy.ndarray
    :return: Motion as string representation.
    :rtype: str
    """
    s = 'MOTION\n'
    s += 'Frames: {}\n'.format(n_frames)
    s += 'Frame Time: {}\n'.format(frame_time)
    for frame in frames.astype(str):
        s += ' '.join(frame)
        s += '\n'
    return s
 Compose the motion part of a bvh file.
    
    :param n_frames: Number of frames.
    :type n_frames: int
    :param frame_time: Time in seconds it takes to advance 1 frame.
    :type frame_time: float
    :param frames: The motion data for channels of all joints.
    :type frames: numpy.ndarray
    :return: Motion as string representation.
    :rtype: str
    
Compose the motion part of a bvh file.
Compose the motion part of a bvh file .
def _get_motion_string(n_frames, frame_time, frames):
    s = 'MOTION\n'
    s += 'Frames: {}\n'.format(n_frames)
    s += 'Frame Time: {}\n'.format(frame_time)
    for frame in frames.astype(str):
        s += ' '.join(frame)
        s += '\n'
    return s
def _get_motion_string ( n_frames , frame_time , frames ) : s = 'MOTION\n' s += 'Frames: {}\n' . format ( n_frames ) s += 'Frame Time: {}\n' . format ( frame_time ) for frame in frames . astype ( str ) : s += ' ' . join ( frame ) s += '\n' return s
Compose the motion part of a bvh file.
Compose the motion part of a bvh file .
""" Compose the motion part of a bvh file.
    
    :param n_frames: Number of frames.
    :type n_frames: int
    :param frame_time: Time in seconds it takes to advance 1 frame.
    :type frame_time: float
    :param frames: The motion data for channels of all joints.
    :type frames: numpy.ndarray
    :return: Motion as string representation.
    :rtype: str
    """
Motion as string representation.
Motion as string representation .
str
n_frames
Number of frames.
Number of frames .
frame_time
Time in seconds it takes to advance 1 frame.
Time in seconds it takes to advance 1 frame .
frames
The motion data for channels of all joints.
The motion data for channels of all joints .