Imag

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

Imag(
    *args ,
)-> None

Return a new patch with the imaginary part of the data array.

Examples

import dascore
pa = dascore.get_example_patch()
out = pa.imag()

Methods

Name Description
check Refuse a patch which does not carry what the operation needs.
chunk_contract Each sample’s imaginary part needs only that sample.
get_metadata The imaginary part is real; real data give zeros of their own dtype.
kernel Return the imaginary part, which is zero for real data.
model_copy Copy the model, dropping cached values the update invalidates.
new Create new instance with some attributed updated.
imag Return a new patch with the imaginary part of the data array.
reconcile Return metadata or a patch holding the final data; default as is.
run Run the operation: check, get_metadata, kernel, reconcile, record.