class_docstr: Module stitches histograms by date
docstr: Stitching histograms by first axis.
  
  :param str mode: options for histogram stitching: "add" or "replace". default is "add".
  :param str time_axis: name of the first axis, to stitch on.
  :param str time_bin_idx: value of delta dataset used for stitching,
      in case delta or first dataset is a batch without time_axis. Should be an ordered string or integer.
  :param str read_key: key of input histogram-dict to read from data store.
      (only required when calling transform(datastore) as module)
  :param str delta_key: key of delta histogram-dict to read from data store.
      (only required when calling transform(datastore) as module)
  :param str store_key: key of output data to store in data store
      (only required when calling transform(datastore) as module)
docstr_tok: ["Stitching","histograms","by","first","axis",".",":","param","str","mode",":","options","for","histogram","stitching",":","``","add","''","or","``","replace","''",".","default","is","``","add","''",".",":","param","str","time_axis",":","name","of","the","first","axis",",","to","stitch","on",".",":","param","str","time_bin_idx",":","value","of","delta","dataset","used","for","stitching",",","in","case","delta","or","first","dataset","is","a","batch","without","time_axis",".","Should","be","an","ordered","string","or","integer",".",":","param","str","read_key",":","key","of","input","histogram-dict","to","read","from","data","store",".","(","only","required","when","calling","transform","(","datastore",")","as","module",")",":","param","str","delta_key",":","key","of","delta","histogram-dict","to","read","from","data","store",".","(","only","required","when","calling","transform","(","datastore",")","as","module",")",":","param","str","store_key",":","key","of","output","data","to","store","in","data","store","(","only","required","when","calling","transform","(","datastore",")","as","module",")"]
code: def __init__(
      self,
      mode: str = "add",
      time_axis=None,
      time_bin_idx=None,
      read_key=None,
      delta_key=None,
      store_key=None,
  ) -> None:
      """Stitching histograms by first axis.
  
      :param str mode: options for histogram stitching: "add" or "replace". default is "add".
      :param str time_axis: name of the first axis, to stitch on.
      :param str time_bin_idx: value of delta dataset used for stitching,
          in case delta or first dataset is a batch without time_axis. Should be an ordered string or integer.
      :param str read_key: key of input histogram-dict to read from data store.
          (only required when calling transform(datastore) as module)
      :param str delta_key: key of delta histogram-dict to read from data store.
          (only required when calling transform(datastore) as module)
      :param str store_key: key of output data to store in data store
          (only required when calling transform(datastore) as module)
      """
      super().__init__()
      self.read_key = read_key
      self.delta_key = delta_key
      self.store_key = store_key
      self.mode = mode
      self.time_axis = time_axis
      self.time_bin_idx = time_bin_idx
      self.allowed_modes = ["add", "replace"]
      if self.mode not in self.allowed_modes:
          raise ValueError("mode should be either 'add' or 'replace'")
  
file_path: popmon/popmon/stitching/hist_stitcher.py
imports: import histogrammar
  import numpy
  from popmon.analysis.hist_numpy import assert_similar_hists
  from popmon.base import Module
label_desc: Use image node_id 1 to create a new HistStitcher object from inherited base classes: Module with example: obj = HistStitcher(mode, time_axis, time_bin_idx, read_key, delta_key, store_key)