Data

class imagepypelines.Data(data)[source]

Bases: object

Object to batch lists or arrays as block processable data

data

the raw data

Type

any type

Attributes Summary

container_type

datum_type

n_datums

number of items loaded into the pipeline

Methods Summary

as_all()

returns all the data in it’s raw form

as_each()

returns a generator the returns each datum individually

grab()

returns the data in it’s raw form

is_homogenus_container()

returns whether or not this container is homogenus

n_batches_with(batch_type)

calculates the number of batches generated with the given batch_type

pop()

returns the data, and then removes it from this object

Attributes Documentation

container_type
datum_type
n_datums

number of items loaded into the pipeline

Type

int

Methods Documentation

as_all()[source]

returns all the data in it’s raw form

as_each()[source]

returns a generator the returns each datum individually

grab()[source]

returns the data in it’s raw form

is_homogenus_container()[source]

returns whether or not this container is homogenus

n_batches_with(batch_type)[source]

calculates the number of batches generated with the given batch_type

pop()[source]

returns the data, and then removes it from this object