DropPrivateCoords

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

DropPrivateCoords(
    *args ,
)-> None

Drop all private coords in the patch.

Examples

import numpy as np
import dascore as dc
pa = (
    dc.get_example_patch("random_das")
    .update_coords(_private=(None, np.array([1,2,3])))
)
pa_no_private = pa.drop_private_coords()
assert "_private" not in pa_no_private.coords.coord_map

Methods

Name Description
check Refuse a patch which does not carry what the operation needs.
get_metadata Return the coordinates whose names are public, and what that costs.
kernel Return the data, emptied along any dimension which was private.
model_copy Copy the model, dropping cached values the update invalidates.
new Create new instance with some attributed updated.
drop_private_coords Drop all private coords in the patch.
reconcile Return metadata or a patch holding the final data; default as is.
run Run the operation: check, get_metadata, kernel, reconcile, record.