Added preliminary opts spec syntax support to __call__
@@ -1087,6 +1087,15 @@ class Dimensioned(LabelledData):
then returned. Note that if no options are supplied at all,
all ids are reset.
"""
+ from ..util.parser import OptsSpec
+ if isinstance(options, basestring):
+ try:
+ options = OptsSpec.parse(options)
+ except:
+ options = OptsSpec.parse(
+ '{clsname} {options}'.format(clsname=self.__class__.__name__,
+ options=options))
+
groups = set(Store.options().groups.keys())
if kwargs and set(kwargs) <= groups:
if not all(isinstance(v, dict) for v in kwargs.values()):
