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