We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 434e2d2 commit 11d2a21Copy full SHA for 11d2a21
nibabel/caret.py
@@ -37,8 +37,15 @@ class CaretMetaData(xml.XmlSerializable, MutableMapping):
37
b'<MetaData><MD><Name>key</Name><Value>val</Value></MD></MetaData>'
38
"""
39
def __init__(self, *args, **kwargs):
40
+ args, kwargs = self._sanitize(args, kwargs)
41
self._data = dict(*args, **kwargs)
42
43
+ @staticmethod
44
+ def _sanitize(args, kwargs):
45
+ """ Override in subclasses to accept and warn on previous invocations
46
+ """
47
+ return args, kwargs
48
+
49
def __getitem__(self, key):
50
""" Get metadata entry by name
51
0 commit comments