def set_global_params(self, hmodel=None, lamA=None, lamB=None, theta=None, **kwargs):
    if hmodel is not None:
        self.K = hmodel.obsModel.K
        self.comp = copy.deepcopy(hmodel.obsModel.comp)
        return
    self.K = theta.shape[1]
    self.comp = list()

    # Initialize each community to have an equal amount of edges
    for k in range(self.K):
        lamAp = self.obsPrior.lamA + lamA[k]
        lamBp = self.obsPrior.lamB + lamB[k]
        self.comp.append(BetaDistr(lamAp, lamBp))


  ######################################################### Evidence
  #########################################################
we need to coerce a scalar to a compat for our index type
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/obsmodel/BernRelObsModel.py/BernRelObsModel.set_global_params--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._coerce_scalar_to_index