import dascore # import dascore library
pa = dascore.get_example_patch() # generate example patch
out = pa.abs() # take absolute value of generated example patch dataAbs
Abs(
*args ,
)-> None
Take the absolute value of the patch data.
Examples
Methods
| Name | Description |
|---|---|
| check | Refuse a patch which does not carry what the operation needs. |
| derive | Return the result’s metadata, as a patch without data. |
| kernel | Return the magnitude of every sample. |
| new | Create new instance with some attributed updated. |
| abs | Take the absolute value of the patch data. |
| plan |
Return the keyword arguments kernel needs; see the class docs.
|
| reconcile | Return the result’s metadata once the data are known; default as is. |
| run | Run the operation: check, derive, plan, kernel, reconcile, record. |