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_mapDropPrivateCoords
DropPrivateCoords(
*args ,
)-> None
Drop all private coords in the patch.
Examples
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. |
| new | Create new instance with some attributed updated. |
| drop_private_coords | Drop all private coords in the patch. |
| reconcile | Return the result’s metadata once the data are known; default as is. |
| run | Run the operation: check, get_metadata, kernel, reconcile, record. |