import dascore as dc
patch = dc.get_example_patch()
# Update existing attributes
updated = patch.update_attrs(instrument_type="DAS")
# Add new custom attributes
with_custom = patch.update_attrs(processing_date="2024-01-01")update_attrs
update_attrs(
self: Patch ,
**attrs ,
)-> ‘PatchType’
Update attrs and return a new Patch.
Parameters
| Parameter | Description |
|---|---|
| **attrs | attrs to add/update. |