def _sub_index_param(self, param):
if self._distributionmodel and (param ==<EOL>self.model.distributedparam):<EOL><INDENT>indices = [()]<EOL><DEDENT>else:<EOL><INDENT>paramvalue = getattr(self.model, param)<EOL>if isinstance(paramvalue, float):<EOL><INDENT>indices = [()]<EOL><DEDENT>elif (isinstance(paramvalue, scipy.ndarray) and<EOL>paramvalue.ndim == <NUM_LIT:1> and paramvalue.shape[<NUM_LIT:0>] > <NUM_LIT:1>):<EOL><INDENT>indices = [(j,) for j in range(len(paramvalue))]<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>".format(<EOL>param, paramvalue))<EOL><DEDENT><DEDENT>return indices<EOL>
Returns list of sub-indexes for `param`.

        Used in computing partial likelihoods; loop over these indices.