class_docstr: Class to handle block paradigms
      
docstr: Parameters
  ----------
  con_id: array of shape (n_events), type = string, optional
         id of the events (name of the experimental condition)
  onset: array of shape (n_events), type = float, optional
         onset time (in s.) of the events
  amplitude: array of shape (n_events), type = float, optional,
             amplitude of the events (if applicable)
docstr_tok: ["Parameters","--","--","--","--","--","con_id",":","array","of","shape","(","n_events",")",",","type","=","string",",","optional","id","of","the","events","(","name","of","the","experimental","condition",")","onset",":","array","of","shape","(","n_events",")",",","type","=","float",",","optional","onset","time","(","in","s.",")","of","the","events","amplitude",":","array","of","shape","(","n_events",")",",","type","=","float",",","optional",",","amplitude","of","the","events","(","if","applicable",")"]
code: def __init__(
      self, con_id=None, onset=None, duration=None, amplitude=None
  ):
      """
      Parameters
      ----------
      con_id: array of shape (n_events), type = string, optional
             id of the events (name of the experimental condition)
      onset: array of shape (n_events), type = float, optional
             onset time (in s.) of the events
      amplitude: array of shape (n_events), type = float, optional,
                 amplitude of the events (if applicable)
      """
      Paradigm.__init__(self, con_id, onset, amplitude)
      self.duration = duration
      self.type = "block"
      if duration is not None:
          if len(duration) != self.n_events:
              raise ValueError("inconsistent definition of duration")
          self.duration = np.ravel(np.array(duration))
  
file_path: nipy/nipy/modalities/fmri/experimental_paradigm.py
imports: import numpy
label_desc: Use image node_id 1 to create a new BlockParadigm object from inherited base classes: Paradigm with example: obj = BlockParadigm(con_id, onset, duration, amplitude)