TileApply

class of dascore.proc.tile_apply
inherits from: PatchProcessor, Task, DascoreBaseModel, pydantic.main.BaseModel
source

TileApply(
    function: Callable ,
    mode: str = overlap_add,
    overlap: Any = None,
    taper: Any = None,
    analysis: Any = None,
    samples: bool = False,
    engine: str = auto,
    **extra_data ,
)-> None

Apply a function to overlapping windows of a patch.

The dimensions to window arrive as extras carrying their window sizes, as the patch function takes them; window turns them into sample counts once the coordinates are known, and derive_meta says what a stack’s coordinates are without touching any data.

Methods

Name Description
check Refuse a patch which does not carry what the operation needs.
derive_meta Return the coordinates of a stack; a blend keeps the input’s.
fingerprint_at Return the digest which identifies this operation and its arguments.
kernel Tile every batch over the windowed axes; blend or stack.
model_post_init Record the version the function was at when this was built.
new Create new instance with some attributed updated.
plan_kernel Return the array function this call is, or None to touch no data.
reconcile Return the metadata the data actually turned out to have.
run Run the operation against a patch.
save Write this task to a file, and return where it was written.
to_dict Return a document which describes this operation.
update Return a new task with some parameters changed.
window Return the window in samples.