class_docstr: MultiSubjectParcellation class are used to represent parcels
  that can have different spatial different contours
  in a given group of subject
  It consists of
  self.domain: the specification of a domain
  self.template_labels the specification of a template parcellation
  self.individual_labels the specification of individual parcellations
  
  fixme:should inherit from mroi.MultiROI
class_docstr_tok: ["MultiSubjectParcellation","class","are","used","to","represent","parcels","that","can","have","different","spatial","different","contours","in","a","given","group","of","subject","It","consists","of","self.domain",":","the","specification","of","a","domain","self.template_labels","the","specification","of","a","template","parcellation","self.individual_labels","the","specification","of","individual","parcellations","fixme",":","should","inherit","from","mroi.MultiROI"]
docstr: Set feature defined by `fid` and `data` into ``self``
  
  Parameters
  ----------
  fid: string
      the feature identifier
  data: array of shape (self.nb_parcel, self.nb_subj, dim) or
        (self.nb_parcel, self.nb_subj)
      the data to be set as parcel- and subject-level information
docstr_tok: ["Set","feature","defined","by","`","fid","`","and","`","data","`","into","``","self","``","Parameters","--","--","--","--","--","fid",":","string","the","feature","identifier","data",":","array","of","shape","(","self.nb_parcel",",","self.nb_subj",",","dim",")","or","(","self.nb_parcel",",","self.nb_subj",")","the","data","to","be","set","as","parcel-","and","subject-level","information"]
code: def set_feature(self, fid, data):
      """Set feature defined by `fid` and `data` into ``self``
  
      Parameters
      ----------
      fid: string
          the feature identifier
      data: array of shape (self.nb_parcel, self.nb_subj, dim) or
            (self.nb_parcel, self.nb_subj)
          the data to be set as parcel- and subject-level information
      """
      if len(data.shape) < 2:
          raise ValueError(
              "Data array should at least have dimension 2"
          )
      if (data.shape[0] != self.nb_parcel) or (
          data.shape[1] != self.nb_subj
      ):
          raise ValueError("incorrect feature size")
      else:
          self.features.update({fid: data})
  
file_path: nipy/nipy/labs/spatial_models/parcellation.py
imports: from warnings import warn
  import numpy
label_desc: Use image node_id 8 for calling the MultiSubjectParcellation obj's underlying member method code with example usage: obj.set_feature(fid, data) without return types