def setField(self, key, rawArray, dims=None):
    # Parse dims tuple
    if dims is None and key in self._FieldDims:
      dims = self._FieldDims[key]
    else:
      self._FieldDims[key] = dims
    # Parse value as numpy array
    setattr(self, key, self.parseArr(rawArray, dims=dims, key=key))
Test for regression of http://trac.edgewall.org/ticket/10752
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/suffstats/ParamBag.py/ParamBag.setField--crossover with--dataset/ETHPy150Open edgewall/trac/trac/admin/tests/functional.py/RegressionTestTicket10752.runTest