NaviNIBS.util.attrs module¶
- NaviNIBS.util.attrs.attrsAsDict(obj, eqs=None, exclude=None)[source]¶
Similar to attrs.asdict(), but strips underscore from private attributes, doesn’t include items with unchanged defaults, etc.
- Specify eqs to provide custom equality test callables, e.g.
dict(field1=array_equalish, field2=nested_array_equalish) for handling np.ndarrays and dicts with ndarray values, respectively
- Return type:
Dict
[str
,Any
]