from_dict

method of dascore.core.attrs.PatchAttrs source

from_dict(
    attr_map: collections.abc.Mapping | dascore.core.attrs.PatchAttrs[Mapping, PatchAttrs] ,
)-> ‘Self’

Get a new instance of the PatchAttrs.

Optionally, give preference to data contained in a CoordManager.

Parameters

Parameter Description
attr_map Anything convertible to a dict that contains the attr info.