Exemplo n.º 1
0
def get_projection_data(input_data, file_name, group_name, mpi=False, new_shape=None):
    """
    Gets a file backed, Raw data object

    :returns:  a RawTimeseriesData Object containing the example data.
    """
    data = ProjectionData()
    data.create_backing_h5(file_name, group_name, input_data, mpi, new_shape)
    return data
Exemplo n.º 2
0
def get_projection_test_data():
    """Gets the test data and returns it in the ProjectionData Structure

    :returns:  a ProjectionData Object containing the example data.

    """
    path = get_test_data_path('projections.h5')
    projection_data = ProjectionData()
    projection_data.populate_from_h5(path)
    return projection_data
Exemplo n.º 3
0
def get_projection_test_data():
    """Gets the test data and returns it in the ProjectionData Structure

    :returns:  a ProjectionData Object containing the example data.

    """
    path = get_test_data_path("projections.h5")
    projection_data = ProjectionData()
    projection_data.populate_from_h5(path)
    return projection_data
Exemplo n.º 4
0
def get_projection_data(input_data,
                        file_name,
                        group_name,
                        mpi=False,
                        new_shape=None):
    """
    Gets a file backed, Raw data object

    :returns:  a RawTimeseriesData Object containing the example data.
    """
    data = ProjectionData()
    data.create_backing_h5(file_name, group_name, input_data, mpi, new_shape)
    return data