Ejemplo n.º 1
0
    def get_raw_data(self, index=None):
        if index is None:
            index = 0

        all_addresses = self.params.detector_address

        raw_data = []

        for address in all_addresses:
            self.params.detector_address = [address]
            sub_d = None
            if "rayonix" in address.lower():
                data = FormatXTCRayonix.get_raw_data(self, index)
            elif "cspad" in address.lower():
                data = FormatXTCCspad.get_raw_data(self, index)
            elif "jungfrau" in address.lower():
                data = FormatXTCJungfrau.get_raw_data(self, index)
            assert data is not None, address
            if not isinstance(data, tuple):
                data = (data, )
            raw_data.extend(data)
        self.params.detector_address = all_addresses

        self._raw_data = raw_data
        return tuple(raw_data)
Ejemplo n.º 2
0
  def get_raw_data(self,index=None):
    if index is None: index = 0

    all_addresses = self._src

    raw_data = []

    for address in all_addresses:
      self._src = [address]
      sub_d = None
      if 'rayonix' in address.lower():
        data = FormatXTCRayonix.get_raw_data(self, index)
      elif 'cspad' in address.lower():
        data = FormatXTCCspad.get_raw_data(self, index)
      elif 'jungfrau' in address.lower():
        data = FormatXTCJungfrau.get_raw_data(self, index)
      assert data is not None, address
      if not isinstance(data, tuple):
        data = (data,)
      raw_data.extend(data)
    self._src = all_addresses

    self._raw_data = raw_data
    return tuple(raw_data)